Discussions
Categories
- 197.1K All Categories
- 2.5K Data
- 546 Big Data Appliance
- 1.9K Data Science
- 450.7K Databases
- 221.9K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 552 MySQL Community Space
- 479 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3.1K ORDS, SODA & JSON in the Database
- 555 SQLcl
- 4K SQL Developer Data Modeler
- 187.2K SQL & PL/SQL
- 21.3K SQL Developer
- 296.3K Development
- 17 Developer Projects
- 139 Programming Languages
- 293K Development Tools
- 110 DevOps
- 3.1K QA/Testing
- 646.1K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 158 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.2K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 19 Java Essentials
- 162 Java 8 Questions
- 86K Java Programming
- 81 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 205 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 466 LiveLabs
- 39 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 175 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 233 Portuguese
Support for javax.comm api

860005
Member Posts: 3
Hello,
I coded a program that reads NMEA sentences from the GPS devices. I used a serial port connection with the device and JAVAX.COMM API for serial port programming. The program is running smoothly in windows OS.
I want to run the code on development kit, I installed linux and GCJ on the device. But the problem is GCJ give error while compiling serial code. (all javax.comm methods)
I was wondering, if you could help me solve this problem.
Regards,
Wasif Iqbal
I coded a program that reads NMEA sentences from the GPS devices. I used a serial port connection with the device and JAVAX.COMM API for serial port programming. The program is running smoothly in windows OS.
I want to run the code on development kit, I installed linux and GCJ on the device. But the problem is GCJ give error while compiling serial code. (all javax.comm methods)
I was wondering, if you could help me solve this problem.
Regards,
Wasif Iqbal
Answers
-
If you have to resort to GCJ, you are already on thin ice and should rethink your strategy. I'd say you don't need Java but you need a native C/C++ application. In any case, a Google search for "gcj java comm" resulted in this as the first hit:
http://stackoverflow.com/questions/1835531/java-compiled-with-gcj-using-javax-comm-api-possible
Amazing what a simple Google query can tell you in under a second, huh? -
GCJ is not a Java compiler, and it relies on a library called GNU CLASSPATH which isn't Java either. Don't use it, and don't ask about it here, this site is for Java as defined by the Sun/Oracle specifications.
-
Thank you for replying.
I have a complete java program, the problem is that i dont know how to compile it on embeded linux 2.6.86. I googled it and gcj came up in search results. Can you assisst me in this problem.
I m using ok6410 development kit (arm board). It is with wince 6 or linux 2.6.86. I have whole coding in java which is tested in windows OS.
How can i compile my code in above mentioned kit? -
Yes i did googled it and came accross that answer which i didnt understand. Can u suggest me any other compile that will run in
Embeded linux 2.6.86 (Debian)
The problem is i have done all my coding in java. -
857002 wrote:Java classes are cross-platform. If there is a Java runtime for this Linux version then you can run them even if you compiled them on Windows. If there is no compatible Java runtime then you should have done your research before writing the code.
Yes i did googled it and came accross that answer which i didnt understand. Can u suggest me any other compile that will run in
Embeded linux 2.6.86 (Debian)
The problem is i have done all my coding in java. -
How can i compile my code in above mentioned kit?Download and install a JDK from Sun/Oracle for the platform and use the 'javac' command.
This discussion has been closed.