When you compile a javelin source file (.java) then a .class is written.
You can call jikes.exe (the compiler used by javelin IDE) directly from a commandline (dos box).
Does anyone have an example of how to compile from the command line with jikes? I read the manual but its still confusing. Such as the classpath flag looks like it should be pointing to a zip/jar file but the source isn't in an archive.
-classpath path··· use path for CLASSPATH
-d dir············ write class files in directory dir
-debug············ no effect (recognized for compatibility)
-depend··········· recompile all used classes
-deprecation······ report uses of deprecated features
-g················ debug (generate LocalVariableTable)
-nowarn··········· do not issue warning messages
-nowrite·········· do not write any class files
-O················ do not write LineNumberTable
-verbose·········· list files read and written
+1.0·············· recognize only 1.0.2 language
++················ compile in incremental mode
+B················ do not invoke bytecode generator
+D················ report errors immediately in emacs-form without buffering
+E················ list errors in emacs-form
+F················ do full dependence check except for Zip and Jar files
+Kname=TypeKeyWord map name to type keyword
+M················ generate makefile dependencies
+M=filename······· generate makefile dependencies information in filename
+P················ Pedantic compilation - issues lots of warnings
+Td...d··········· set value of tab d...d spaces; each d is a decimal digit
+U················ do full dependence check including Zip and Jar files
+Z················ treat cautions as errors
Javelin example that should work (assuming Javelin IDE installed in default directory)
jikes -classpath "c:\program files\parallax inc\javalin stamp ide\lib;c:\program files\parallax inc\javalin stamp ide\projects;" file.java
Thanks, I tried something like that and it worked. I am using the MATLAB system out command to run the compiler, this goes into an automated code generation system so that MATLAB can talk to the Javelin stamp as if it were DAQ I/O lines.
Comments
You can call jikes.exe (the compiler used by javelin IDE) directly from a commandline (dos box).
regards peter
-Scott
IBM Research Jikes Compiler
(C) Copyright IBM Corp. 1997, 1999.
- Licensed Materials - Program Property of IBM - All Rights Reserved.
use: jikes [noparse][[/noparse]-classpath path][noparse][[/noparse]-d dir][noparse][[/noparse]-debug][noparse][[/noparse]-depend][noparse][[/noparse]-deprecation][noparse][[/noparse]-g][noparse][[/noparse]-nowarn][noparse][[/noparse]-nowrite][noparse][[/noparse]-O][noparse][[/noparse]-verbose][noparse][[/noparse]+1.0][noparse][[/noparse]++][noparse][[/noparse]+B][noparse][[/noparse]+D][noparse][[/noparse]+E][noparse][[/noparse]+F][noparse][[/noparse]+K][noparse][[/noparse]+M][noparse][[/noparse]+P][noparse][[/noparse]+T][noparse][[/noparse]+U][noparse][[/noparse]+Z] file.java...
-classpath path··· use path for CLASSPATH
-d dir············ write class files in directory dir
-debug············ no effect (recognized for compatibility)
-depend··········· recompile all used classes
-deprecation······ report uses of deprecated features
-g················ debug (generate LocalVariableTable)
-nowarn··········· do not issue warning messages
-nowrite·········· do not write any class files
-O················ do not write LineNumberTable
-verbose·········· list files read and written
+1.0·············· recognize only 1.0.2 language
++················ compile in incremental mode
+B················ do not invoke bytecode generator
+D················ report errors immediately in emacs-form without buffering
+E················ list errors in emacs-form
+F················ do full dependence check except for Zip and Jar files
+Kname=TypeKeyWord map name to type keyword
+M················ generate makefile dependencies
+M=filename······· generate makefile dependencies information in filename
+P················ Pedantic compilation - issues lots of warnings
+Td...d··········· set value of tab d...d spaces; each d is a decimal digit
+U················ do full dependence check including Zip and Jar files
+Z················ treat cautions as errors
Version 0.47 (10 Mar 99) by Philippe Charles and David Shields, IBM Research.
Please report problems to shields@watson.ibm.com.
or via browser at http://www.ibm.com/research/jikes
Javelin example that should work (assuming Javelin IDE installed in default directory)
jikes -classpath "c:\program files\parallax inc\javalin stamp ide\lib;c:\program files\parallax inc\javalin stamp ide\projects;" file.java
regards peter
-Scott
"C:\Program Files\Parallax Inc\Javelin Stamp IDE\jikes\jikes.exe" +E -depend -g "C:\Documents and Settings\Jonathan\Desktop\javelin\code\javelin\%*.java" -classpath "C:\Documents and Settings\Jonathan\Desktop\javelin\code\javelin;"
"C:\Documents and Settings\Jonathan\Desktop\javelin\javelin direct\JavelinDirect.exe" JavelinDirect --path "C:\Documents and Settings\Jonathan\Desktop\javelin\code\javelin" --port 8 --listen %*
You will need to change the path but you can get an idea!