java classes in windows and linux


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: java classes in windows and linux

Hybrid View

  1. #1
    Join Date
    Mar 2005
    Location
    London
    Posts
    18

    java classes in windows and linux

    Hi there,

    We've recently completed coding a series of java classes designed to download information from a datalogger. These classes connect to the datalogger using sockets, to an IP address on our network. This system was developed on a local machine running a Windows OS. Since transferring it to our linux-based server the classes seem unable to process the output of the datalogger. The systen can still connect to the same IP address but seems to be interpreting the output differently. I have run the classes on a linux-based PC and this produces the same dodgy results.

    Has anyone experienced problems in moving java classes between operating systems? Can anyone suggest what might be going wrong?

    dave

  2. #2
    Join Date
    Jul 2005
    Posts
    78
    Do the classes use any windows specific code?

  3. #3
    Join Date
    Mar 2005
    Location
    London
    Posts
    18
    That would be my suspicion - though I don't know which aspects of the code are Windows specific. The classes send command line-type instructions; rather than defining a recordset set like in SQL, it's more like vi editor for unix "go to record 24", "output 10 records" etc. These commands generally correspond to single ASCII characters

    One area may be that we are hard-coding End Of Line markers and these may differ between different OS's?

Similar Threads

  1. Replies: 0
    Last Post: 07-21-2003, 03:17 PM
  2. .NET vs. Enterprise Java: Who's Got Better Security?
    By Glen Kunene in forum Talk to the Editors
    Replies: 17
    Last Post: 03-23-2002, 01:43 AM
  3. My view of the world
    By Kevin Moore in forum .NET
    Replies: 55
    Last Post: 02-27-2002, 04:06 PM
  4. Java on Linux
    By Brett in forum Java
    Replies: 3
    Last Post: 11-26-2000, 03:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center