home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1998 #4 / amigaacscoverdisc1998-041998.iso / utilities / shareware / comm / java / java_instructions.doc < prev    next >
Encoding:
Text File  |  1998-01-20  |  1.4 KB  |  59 lines

  1. Right, here is Pootles instructions on how to get Kaffe-Java to work on your
  2. system:
  3.  
  4.  
  5. 1. Make sure you have at least 2 cigarettes at hand
  6.  
  7. 2. Decrunch the arc into a relevant place
  8.  
  9. 3. Put the contents of PootlesLibs into your LIBS: dir
  10.  
  11. open up the INFO on your shell starter (shell/cli/kcon/whatever and change the
  12. stack to 64000 - yes its not a typo 64000 !
  13.  
  14. Open your S:shell-startup in a text editor and add the following lines:
  15. ;begin JAVA stuff
  16. ASSIGN JAVA: «wherever you stuck the Java dir»
  17. ALIAS javac "Java:bin/kaffe sun.tools.javac.Main []"
  18. ALIAS java "Java:bin/kaffe []"
  19. PATH Java: add
  20. ;end JAVA stuff
  21.  
  22. THINGS TO REMEMBER
  23. ------------------
  24.  
  25. Make sure you add those lines to shel-startup and not user-startup
  26. Make sure there is a space in the 2 lines between the last word and the []
  27. (eg NOT alias ........Main[] or alias ......kaffe[])
  28. or it will not work!
  29.  
  30. Right - open up a shell and get going!!
  31.  
  32. javac is the command to compile the java source
  33.    eg javac MySource.java
  34. java is the command to run the java exe
  35.    eg java MySource
  36. note you do not put the class extension if you are running the exe!
  37.  
  38. Go for it!
  39.  
  40. There is a bit of Source in the drawer MyStuff called FunTest.java
  41.  
  42. Try this:
  43.  
  44. Open up a shell
  45. cd to Java:MyStuff
  46. type:
  47.    javac FunTest.java
  48. this will compile the script
  49. now type:
  50.    java FunTest
  51. this will run the script
  52.  
  53. Now go buy a book on JAVA !!!
  54.  
  55. HAVE FUN
  56.  
  57. Pootle
  58.  
  59.