hi plz guide me as to how u can compile jdk1.4 program codes in textpad.
i am encountering this problem becoz some of the reserved words in jdk1.4 like "assert" are not being recognized in textpad.
if this is not possible then plz guide as to what tool should be used in order to compile it
compiling jdk1.4
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
- s_reynisson
- Posts: 939
- Joined: Tue May 06, 2003 1:59 pm
Not sure if I understand you, but setting up the JDK is explained here:
http://textpad.com/support/faq/java.html
Also I found this using search for "assert"
http://textpad.com/forum/viewtopic.php?t=4668
but there's no feedback on it so I'm not sure about that one.
HTH
http://textpad.com/support/faq/java.html
Also I found this using search for "assert"
http://textpad.com/forum/viewtopic.php?t=4668
but there's no feedback on it so I'm not sure about that one.
HTH
Then I open up and see
the person fumbling here is me
a different way to be
the person fumbling here is me
a different way to be
-
- Posts: 2
- Joined: Wed Jan 21, 2004 10:54 am
- s_reynisson
- Posts: 939
- Joined: Tue May 06, 2003 1:59 pm
Via Google I found:
And since this is a compiler option use
So, referring to my first reply, add -source 1.4 to your parameters in Textpad.
To run your programs you must also enable it
Add -enableassertions to your parameters in Textpad.
and also http://leepoint.net/notes-java/20langua ... usage.htmlTo enable assertions one must set source="1.4", "1.5" or later in <javac> when the source is being compiled, and that the code must contain assert statements to be tested.
And since this is a compiler option use
Code: Select all
javac -source 1.4 MyProg.java
To run your programs you must also enable it
Code: Select all
java -enableassertions MyProg
Then I open up and see
the person fumbling here is me
a different way to be
the person fumbling here is me
a different way to be