This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Communications API install problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Communications API install problem" Watch "Communications API install problem" New topic
Author

Communications API install problem

Adam Wilkins
Greenhorn

Joined: Oct 19, 2005
Posts: 24
I followed all the directions to install the API, but when I try to compile a sample source code, I get the following warning:


--------------------Configuration: JDK version 1.5.0_01 <Default>--------------------
Note: C:\Documents and Settings\Adam Wilkins\Desktop\temp\commapi\samples\SerialDemo\SerialDemo.java uses or overrides a deprecated API.
Note: Recompile with -Xlint eprecation for details.

Process completed.


I can get the program to work - sort of......
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
Since this is a warning, you should be able to run the program just fine. I suspect that this example was written for an earlier version of Java and uses some methods and classes that have been deprecated in Java 1.5. You can find out specifically which methods it is using by following the instructions: recompile using the -Xlint flag. If you need help with how to do this, you need to tell us how you are compiling the program at the moment. Are you using the command-line or an IDE?

Layne


Java API Documentation
The Java Tutorial
Adam Wilkins
Greenhorn

Joined: Oct 19, 2005
Posts: 24
I am using JCreator LE at the moment. I would also like to know how to do this with Eclipse, if you know.

Many thanks!

Adam
Adam Wilkins
Greenhorn

Joined: Oct 19, 2005
Posts: 24
I am trying to compile the program on a different computer now and it states it cannot find the javax.comm package. I did everything like I did on the other PC.

Any suggestions or things I can look at? Is there a way to view the classpaths?
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
Sorry, I am unfamiliar with JCreator LE. There should be a menu item to set compiler options. In NetBeans, I would go to the Project menu and click on Options. Then a dialog box pops up where I click on the Compile Time options which then lets me enter options like -Xlint eprecated. Perhaps this example will help you find a similar dialog in JCreator. You should also use the Help system to see if it can help.

Layne
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Communications API install problem
 
Similar Threads
jar issues
Nokia API? It's urgent.
javamail help?
Note messages after compiling an APPLET
ERROR/AndroidRuntime(706): java.lang.RuntimeException: Unable to start activity