You can have them side by side, just make sure that the one you're using is java 1.5. Also, remember to install the env jni and java comm for the new jvm.
Janos -----Original Message----- From: Ruoshui Liu [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 05, 2007 12:29 PM To: [email protected] Cc: Janos Sallai Subject: Re: [Tinyos-help] Problem of using Matlab with TinyOS-wrong version49.0! Thank you for your reply. The other question is do I need to uninstall Java 1.4 before I install Java 1.5? Best regards, Ruoshui Janos Sallai wrote: Apparently, MATLAB R2007b comes with Java 1.5 compatible jar files (version 0.49). The Java 1.4.2 you have installed can handle class files up to version 0.48. Installing Java 1.5 or later will solve the issue. Janos -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ruoshui Liu Sent: Wednesday, December 05, 2007 11:29 AM To: [email protected] Subject: [Tinyos-help] Problem of using Matlab with TinyOS-wrong version49.0! Dear all, I am trying to use the Matlab with TinyOS, and when I compile the java files by using the command 'make matlab' in the following directory: "/cygdrive/c/tinyos/cygwin/opt/tinyos-1.x/tools/java/net/tinyos/matlab" I have got the error: $ make matlab javac MatlabClock.java MatlabControl.java MatlabMessageListener.java MatlabMesse nger.java; MatlabClock.java:48: cannot access com.mathworks.jmi.Matlab bad class file: C:\Program Files\MATLAB\R2007b\java\jar\jmi.jar(com/mathworks/jm i/Matlab.class) class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpa th. Matlab matlab; ^ 1 error make: *** [matlab] Error 1 I searched in the TinyOS-help archives, and I know it is due to the imcompatibility between different versions of Java. I used to installed two versions of Java in my computer, but now I only have the Java 2 SDK, SE v1.4.2. My version of Matlab is R2007b. My CLASS setting is: .;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java;C:\tinyos\cygwin\opt\tinyos-1 .x\tools\java\jars\cup.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars \Jama-1.0.1. jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\javax.servlet.jar;C:\t inyos\cygwin\opt\tinyos-1.x\tools\java\jars\jazz.jar;C:\tinyos\cygwin\opt\ tinyos-1.x\t ools\java\jars\jdom.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\JL ex.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\junit.jar;C:\tinyos \cygwin\opt\ tinyos-1.x\tools\java\jars\log4j-1.2.11.jar;C:\tinyos\cygwin\opt\tinyos-1. x\tools\java\jars\oalnf.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jar s\org.mortba y.jetty.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\pgjdbc2.jar;C: \tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\plot.jar;C:\tinyos\cygwin\op t\tinyos-1.x \tools\java\jars\pxgraphapplet.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\j ava\jars\xercesImpl.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\xm lParserAPIs. jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\xmlrpc-1.2-b1.jar;.;c: \program files\j2sdk_nb\j2sdk1.4.2\jre\lib\comm.jar;C:\Program Files\MATLAB\R2007b\java\jar\jmi.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools \java\comm.jar;c:\tinyos\cygwin\opt\tinyos-1.x\tools\java I am stuck with it, and could anyone help me with this please? Best regards, Ruoshui Liu Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.16.7 - Release Date: 11/25/2007 12:00 AM Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.16.7 - Release Date: 11/25/2007 12:00 AM
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
