faqts : Computers : Programming : Languages : Tse : Language : Computer : Java

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 1 people (100%) answered Yes
Recently 1 of 1 people (100%) answered Yes

Entry

TSE: Language: Computer: Compile: Java: How to compile Java from TSE v2.5?

Oct 4th, 2003 14:14
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 19 February 2003 - 09:49 pm -------------------

TSE: Language: Computer: Compile: Java: How to compile Java from TSE 
v2.5?

Steps: Overview:

 1. make sure you have Java installed, so that e.g. Java.exe and 
Javac.exe
    can be found on your computer

    e.g. goto URL:

     http://www.sun.com

2. make sure you have 4DOS or 4NT installed
   (necessary for the long filenames)

e.g. for a trial version goto

http://www.jpsoft.com

3. create a batchfile 'comJava.bat', containing this text
(adapt it to your system) and store this batchfile in your TSE 
directory
(e.g. save to c:\mytsedirectory\comJava.bat)

 @rem in general:
 @rem
 @SET filenameS=%@LFN[%3]
 javac.exe %filenameS%
 java %@NAME[%filenameS%]
 @SET filenameS=
 @PAUSE
 @EXIT

3. Adapt the compiler information

   (in TSE, after loading any file, press <SHIFT><F9>
   then 'D' for debug compiler setup
   then <ALT><C> to copy one of the compiler settings present
   then change the fields:

   'Extension' to: .jav
   'Description' to: Java
   'Command' to: c:\mytsedirectory\comJava.bat &name& &ext& &fn& > 
&output&

    If you get an empty screen, use instead:
   'Command' to: c:\mytsedirectory\comJava.bat &name& &ext& &fn&

   make sure this information is permanently stored in the compiler
   information (via <ENTER>, then <ESCAPE>)

4. If you now load a .Java file, fill in some program code for Java,
   for example type or copy this text in a file 'HelloWorld.jav'

    public class HelloWorld {
     public static void main( String[] args ) {
      System.out.println( "Hello World" );
     }
    }

   save that text in your TSE directory,
   then press <CTRL><F9> or <ESCAPE><M><C> to compile, this will run 
that
   batch file, which runs Java.exe and javac.exe with your file as 
parameter

---
---

Internet: see also:

Computer: Wordprocessor: TSE: Language: Computer: Compile: Run: 
Overview
http://www.faqts.com/knowledge_base/view.phtml/aid/24311/fid/895

----------------------------------------------------------------------