Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

compile with text pad

Status
Not open for further replies.

SSonnier

Technical User
Nov 4, 2003
78
US
I am trying to compile with textpad but I am getting errors. Can anyone wo compile walk me through setting up text pad to compile java.

Thanks
 
I can't compile a simple "hello world" program from the command line or from text pad. The response is that
"Can not resolve symbol, symbol: class string..... package system does not exist". I have read teh FAQ about installing and looked on the java.sun site but can not see what I am doing wrong.

I have installed correctly on my desktop, but can not get this correct on my notebook.

Any help would be appreciated!!
 
post your code ...

remember that Java is case sensitive - so its

System.out.println("Hello");

not - system.out.println ...

and also

String s = "world";

not - string s = ...
 
Understood, but now.... on both my desktop and notebook, when I try to compile from textpad a windows alert

"c:windows\javac.exe

The system can not find the specified file.
 
edit you enviroment PATH variable to use the javac.exe from your SDK install -

set JAVA_HOME=C:\j2sdk1.4
set PATH=%JAVA_HOME%\bin

(or edit it via Control-Panel-->System-->Advanced-->Environment-Varibales)
 
Is this in the autoexec.bat file?

I'm working on windows 98
 
Oh, yes add it in autoexec.bat if in win98

set JAVA_HOME=C:\j2sdk1.4
set PATH=%JAVA_HOME%\bin;%PATH%
 
Here is what is in my autoexectbat file

set JAVA_HOME=C:\j2sdk
SET PATH=%JAVA_HOME%\bin;%PATH%

But I am still receiving he same error....

"c:windows\javac.exe

The system can not find the specified file.

any ideas?

Thanks
 

Try adding these lines to your autoexec.bat file.You should remove previously added path and class path variables for java.

Give the filename as it is installed in your system, in path and classpath(here that is j2sdk1.4.1_01)(For this , right click on Start ,explore and check how the installation directory is spelt)


set classpath=%classpath%;c:\j2sdk1.4.1_01\lib;
set path=%path%;c:\j2sdk1.4.1_01\bin


And run autoexec from command prompt (Type autoexec and press enter) or restart your system.

To check if java is correctly installed in your system run the commands java and javac from command prompt.

Hope this helps.
 
Here is my autoexec.bat file... I am still getting the same error. Grrr... I really don't understand what the problem is.

@ECHO OFF

REM [Header]

REM [CD-ROM Drive]
REM C:\WINDOWS\COMMAND\MSCDEX /D:MSCD001

REM [Miscellaneous]

REM [Display]


REM SET PATH=C:\WINDOWS\SYSTEM\WBEM;C:\DMI\WIN32\BIN;C:\STLTE182\Keyboard;C:\STLTE182;

set classpath=%classpath%;c:\j2sdk\lib;
set path=%path%;c:\j2sdk\bin


SET WIN32DMIPATH=C:\DMI\WIN32
CLS

PROMPT=$P$G
rem PATH=C:\WINDOWS\COMMAND;C:\WINDOWS;;C:\STLTE182\Keyboard;
SET STATION=14
rem SET CCTERMINAL=
rem SET FORMCACHE=C:\FORMS
SET FORMCACHE=C:\CACHE
SET AUTO_SWAP=NO
SET SINGLE_CACHE=NO
SET MAX_CHAINS=5
rem cd \stlte182
rem lh sl starkeyb
rem lh te llllyyygrwwbw,c,;\;,2,6,,,,,s,,,*tel
rem cd\FORMS

rem PATH=%PATH%;"C:\Program Files\Mts"
rem path=c:\borland\bcc55\bin;%path%;
rem SET path="C:\Program Files\Oracle\jre\1.1.8\bin";"%path%";
rem SET Path=c:\oracle\ora90\bin;"%Path%"

set ci_holos_cli=c:\program files\seagate software\open olap
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top