wher to locate e class path?

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
king
Posts: 10
Joined: Wed Feb 16, 2005 6:04 am

wher to locate e class path?

Post by king »

wher to locate the class path and wat is the use of editing class path?
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

You have quite a few posts here king and they all seem related to me. Looks like you've got some Java SDK installed, you can check which version by entering "java -version" at the command prompt.

In TP, start by removing the Jave tools by going to Configure->Preferences->Tools and hit the red X for each Java tool/command.

Then add them all again using the TP built in command, see here for details under "How do I add the JDK commands?".

I hope this gets you off to a decent starting point.
Then I open up and see
the person fumbling here is me
a different way to be
king
Posts: 10
Joined: Wed Feb 16, 2005 6:04 am

Post by king »

i had delete e SDK commands and add them in again but also cannot.

Do i need to modify the JDK commands?

there is a step which says:
In the Parameters box, type:
-classpath "$FileDir;path" $File
where path is a fully qualified folder name. Place quotes around it, as shown, if it contains spaces.
the path refer to which fully qualified folder name?
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

No, just add the commands using TP and you should be ok.
Then I open up and see
the person fumbling here is me
a different way to be
king
Posts: 10
Joined: Wed Feb 16, 2005 6:04 am

...

Post by king »

i have add the commands but stil cannot
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

What Java version are you using? Enter "java -version" at the command prompt. What TP version are you using? Help->About TextPad.
Then I open up and see
the person fumbling here is me
a different way to be
king
Posts: 10
Joined: Wed Feb 16, 2005 6:04 am

what should i do? pls help me

Post by king »

Im uninstall everything and install back j2sdk1.4.2 and textpad 4.7.2. now i got this prob:

#
# HotSpot Virtual Machine Error, Internal Error
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-b28 mixed mode)
#
# Error ID: 5448524541442C4F43414C33544F524147450E4350500042
#

Heap at VM Abort:
Heap

Tool completed with exit code -1073741819
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

This looks like your original post which I already did some Googling on. Did you try version 4.7.3 of TP? A long shot, but uninstalling 472 and installing 473 might do some good. In any case, I'm stumped, so if anyone else has an idea please feel free to jump in!
Then I open up and see
the person fumbling here is me
a different way to be
king
Posts: 10
Joined: Wed Feb 16, 2005 6:04 am

Help Help Help!

Post by king »

Yup initially when i first had this problem then u ask me to install jdk version 1.5. so i went to download and install version 1.5. then i got the missing javac.exe file problem. then somehow i manage to solve this problem. but then i got another problem which is cannot compile a file which call other class. this is e final problem that cannot be solve. i also keep uninstall everything and install back again. then i also try to change the environment variable also cannot. then i also try to modify the JavaHome location in registry locator also cannot. strange leh even though i delete all e things and start from the fresh to install back also cannot work leh.

how do i completely delete all the things and reinstall the things again? what r the steps to install and which version should i use?
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

The way I do it is "by the book" sort of. I first install the Java SDK and then TP. That way TP detects the Java SDK and automatically installs the Java commands. It just works out of the box. No changes are needed on my system.
In your case, it seems you uninstalled Java and installed version 1.5, in order for that to work you also need to remove the Java commands from TP and then use the built in command in TP to add them back, see the Java FAQ, that way all the parameters are correct and you do not have to tweak any setup on your system.
Try this: Uninstall both TP and Java. Then install Java first, TP second. Use the latest verions for both, Java SDK 1.5 and TP 473. Make sure all Java versions are uninstalled from your system and restore/clean your environment variables before you start reinstalling.
Then I open up and see
the person fumbling here is me
a different way to be
king
Posts: 10
Joined: Wed Feb 16, 2005 6:04 am

more to ask/.

Post by king »

Ok but i also found a SDK folder version 1.1 inside Microsoft visual studio.net 2003 folder. should i delete that too? then which are the environment variables i should delete/clean? there are 2 types which are user variables and system variables?are these variables important? Then when i go to download jdk version 5.0, i don;t know which one to choose.
choice 1: Netbean IDE + JDK version 5.0 update 1
choice 2: JDK 5.0 update 1
choice 3: JRE 5.0 update 1
king
Posts: 10
Joined: Wed Feb 16, 2005 6:04 am

no idea

Post by king »

i had uninstalled everything and reinstall again. firstly i intend to install netbean IDE + JDK version 5.0 update 1 but the process hang at 29% so i stop it. then i choose to install JDK 5.0 update and JRE 5.0 together. then i install textpad 473. in the end i stil got back the problem which is cannot compile file that call other class for declaring variables. so now only left with the environment variables to change but i dunno wat to change or delete. if not, wat else can be done?
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

Try to use "choice 2: JDK 5.0 update 1". Keep the SDK folder version 1.1 inside Microsoft visual studio.net 2003 folder if you have not thrown it out already. Only change the user variables and system variables you remember to have modfied, ie. try to restore them to their original values, if you do not remember how leave them as they are. I seem to remember this hang for the Java SDK install, in my case this was a bad download.
Then I open up and see
the person fumbling here is me
a different way to be
Post Reply