954,545 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

javac doesn't work

I use textpad and i can use java but i cant use the javac

mexicanwitewash
Newbie Poster
5 posts since Apr 2006
Reputation Points: 10
Solved Threads: 0
 

How so?

It should be in the bin folder.

[IMG]http://img476.imageshack.us/img476/5171/cut20ln.png[/IMG]
Piworld ™
[Tis simple as Pie]

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 

he probably didn't install the JDK, or didn't set his environment properly, as described in the installation instructions.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

I installed the JDK correctly and the javac is in the bin but my compuer isn't reading the program right

mexicanwitewash
Newbie Poster
5 posts since Apr 2006
Reputation Points: 10
Solved Threads: 0
 

>compuer isn't reading the program right...

Shame that, maybe you need to change the prescription for the glasses your computer uses.
:lol:

[IMG]http://img476.imageshack.us/img476/5171/cut20ln.png[/IMG]
Piworld ™
[Tis simple as Pie]

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 

Alter your environment variables to point to the current directory.

server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
 

Hi do you have added any tools in the textpad? like in the configure menu....go to preferences, there in the left tree view can you able to see any content in the tools node? let me know.....

shahnazurs
Newbie Poster
17 posts since Mar 2006
Reputation Points: 10
Solved Threads: 0
 
I installed the JDK correctly and the javac is in the bin but my compuer isn't reading the program right

If you had installed it correctly it would work...

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 
Hi do you have added any tools in the textpad? like in the configure menu....go to preferences, there in the left tree view can you able to see any content in the tools node? let me know.....


Yeah i added my SDK tools because i had installed textpad first. I tried to use javac through cmd by typing the location of the file, but it won't except any of the applications that i give it to compile.

mexicanwitewash
Newbie Poster
5 posts since Apr 2006
Reputation Points: 10
Solved Threads: 0
 

ok fine, let me know what is happening when you click the tool like "javac" in the textpad? just write some basic snippet and try to compile via texpad i.e. by cicking javac tool added in the textpad or just press ctrl+1...

shahnazurs
Newbie Poster
17 posts since Mar 2006
Reputation Points: 10
Solved Threads: 0
 

I click the compile tool (javac) and it creates a class of the document, but when i put the class to use by running the application, it says that there is no class defined, meaning that the class doesn't exist.

mexicanwitewash
Newbie Poster
5 posts since Apr 2006
Reputation Points: 10
Solved Threads: 0
 

Also when i try to extend it to other applications it doesn't allow the application to read that there is a class.

mexicanwitewash
Newbie Poster
5 posts since Apr 2006
Reputation Points: 10
Solved Threads: 0
 

ever heard about classpath? Read up on that, you haven't grasped how to configure your system still.

The compiler works fine, as you get a classfile. But you have to tell the runtime where to find it (and the compiler as well when you want to use it from another source).

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

javac works fine. Problem exists between keyboard and chair :)

server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
 

I'd rather think some 2-3ft higher than that :)

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 
I'd rather think some 2-3ft higher than that :)

:lol: :lol: :lol:

server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
 

as you're were not specific in describing your system i'm assuming you're using linux and the ibm j2sdk. obviously depending on what you've got installed you should change this accordingly. if you have windows.. i don't have a clue what you should do

export PATH="/usr/lib/j2sdk1.5-ibm/bin/:$PATH"
pty
Posting Pro
530 posts since Oct 2005
Reputation Points: 64
Solved Threads: 39
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You