Shop OBEX P1 Docs P2 Docs Learn Events
Class files — Parallax Forums

Class files

Robot FreakRobot Freak Posts: 168
edited 2007-05-12 23:17 in General Discussion
Is there a .exe file to make .class files of .java files?

Thanks!

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2007-04-24 19:36
    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).

    regards peter
  • ScottFrassoScottFrasso Posts: 3
    edited 2007-05-12 02:09
    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.

    -Scott
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2007-05-12 17:15
    Using jikes without any argument produces

    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
  • ScottFrassoScottFrasso Posts: 3
    edited 2007-05-12 18:06
    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.

    -Scott
  • DorlingDorling Posts: 32
    edited 2007-05-12 23:17
    Scott these are the command I use:

    "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!
Sign In or Register to comment.