01 June 2005 - java_dev (original) (raw)

04:21 pm - banana - Freedom I've come across various free-as-in-speech Java implementations and even considered contributing. But I wondered what would be the point? Unsurprisingly, perhaps, Richard Stallman has a strong opinion about this. In summary, he objects to the Sun licencing conditions for Java, and he thinks Java developers should be targeting one of the free implementations, not Sun's Java. I've read his article and I'm completely unconvinced. Should I care about "The Java Trap"?
06:22 pm - cparker - javax.comm.* installation I've inherited a source tree from a former co-worker, and there are two classes here that reference javax.comm.SerialPort. Eclipse highlights the imports of javax.comm.SerialPort and throws the error The import javax.comm cannot be resolved.I've visited http://java.sun.com/products/javacomm/, downloaded the package for Windows, and installed the API according to the PlatformSpecific.html file. This means that YES, I have installed javax.comm.properties into my \lib directory.**( I've viewed the appropriate section of CommAPI_FAQ.txt, and the information it provides isn't proving to be helpful.Collapse )**Does anybody have any potentially helpful information to get me going? Do I need to register the win32com.dll file? Have I installed the javax.comm.properties file in the incorrect location after all? (I have the Java 2 SDK 1.4.2 installed in C:\j2sdk1.4.2_08 and I copied the javax.comm.properties file into C:\j2sdk1.4.2_08\lib.) It shouldn't make a difference, but I have set my CLASSPATH as per the PlatformSpecific.html file, as well.Thanks!EDIT 0: I got the BlackBox sample program to run finally. However, I had to place files in odd places that didn't match the PlatformSpecific.html file. They are:javax.comm.properties: C:\j2sdk1.4.2_08\jre\libcomm.jar: C:\j2sdk1.4.2_08\lib C:\j2sdk1.4.2_08\jre\lib\ext (EDIT 2)win32com.dll: C:\j2sdk1.4.2_08\jre\bin OR C:\j2sdk1.4.2_08\bin **_(EDIT 2)**The import statements I have in the sources that I inherited, though, are still throwing errors. :-/(Thanks,_ init_0, for suggesting to "copy javax.comm.properties to c:\j2sdk1.4.2_08\jre\lib [...]"!)EDIT 1: I added the comm.jar library to the Java Build Path for my Eclipse Project (Right-click project name in Package Explorer, Click Properties -> Java Build Path -> Add External JARs...). Once I did this, the import statement no longer threw any errors, and I can (finally) run the program.(Thanks, crankycoyote, for suggesting to "add the lib to the [...] config"!)EDIT 2 (FINAL EDIT): I re-read init_0's suggestion and I moved BOTH files as suggested. The BlackBox sample program still works as expected, and so does the program I've inherited, only without needing to add the library to the project's Java Build Path--Eclipse now considers it part of the "JRE System Library".(Thanks again, init_0, for suggesting to "copy javax.comm.properties to c:\j2sdk1.4.2_08\jre\lib and [comm.jar] to c:\j2sdk1.4.2_08\jre\lib\ext"! I know your solution technically solved my problem, but as I've never used an IDE for Java programming before, I had to figure it out for myself with the guidance of kind people.Now I know more than I did, and I'm greatful to everyone [jojobear99, init_0, crankycoyote] who helped me.)