- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Java Question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 01:05 AM
02-03-2004 01:05 AM
Compile the source into a class file as follows:
javac -classpath /usr/local/jakarta-tomcat/common/lib/servlet.jar HelloWorld.java
This will create a file called HelloWorld.class. Copy the HelloWorld.class file to the /home/tomcat/your_application/WEB-INF/classes directory.
*** When i do this i get a "bash: javac: command not found "...... why is this? The site i'm going off of is spefiically for configuring apache and tomcat for RH 9.0 which i have. Thanks ..
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 01:07 AM
02-03-2004 01:07 AM
Re: Java Question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 01:32 AM
02-03-2004 01:32 AM
Re: Java Question
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 01:35 AM
02-03-2004 01:35 AM
Re: Java Question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 01:36 AM
02-03-2004 01:36 AM
Re: Java Question
you need java run time to interpret java code as a client, and java sdk to compile your own java progs.
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 01:38 AM
02-03-2004 01:38 AM
Re: Java Question
Go for sdk part.
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 01:41 AM
02-03-2004 01:41 AM
Re: Java Question
If that is already installed then what part do i still need? The JRE download??? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 02:00 AM
02-03-2004 02:00 AM
Re: Java Question
If so, just add that directory to your PATH or type the full path name to "javac"
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 02:03 AM
02-03-2004 02:03 AM
Re: Java Question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 02:09 AM
02-03-2004 02:09 AM
Re: Java Question
*prompt*# /usr/java/j2sdk1.4.1/bin/javac -classpath /usr/local/jakarta-tomcat/common/lib/servlet.jar HelloWorld.java
?? Thanks for the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 02:13 AM
02-03-2004 02:13 AM
Re: Java Question
error: cannon read: HelloWorld.java
1 error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 03:13 AM
02-03-2004 03:13 AM
Solutionto clarify some terminology. Java is a programming language starting from text source code, which is compiled to a bytecode format, which is then executed. If all you want to do is execute programs that other people already compiled you only need the part interpreting the bytecode. This is the so called runtime environment or JRE. If you want to compile text source code yourself you need a SDK (software developers kit). The SDK is a superset of the JRE, i.e. all the functionality of the JRE is also part of the SDK.
Try to put the bin directory into your path for ease of use. Using this will cut down the overlong commands you have now considerably.
As for the last error you are getting, are you sure you have a HelloWorld.java in your current working directory?
Greetings, Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 03:14 AM
02-03-2004 03:14 AM
Re: Java Question
Make sure that HelloWorld.java is located in the directory from which you are executing the javac command. Also make sure that the permissions on the file give read access. If HelloWorld.java is located somewhere else, you either need to cd to that directory before giving the javac command, or you need to add a -sourcepath option specifying where your source is located. (Type javac -h to get more detail about command options.)
Bruce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 03:18 AM
02-03-2004 03:18 AM
Re: Java Question
PATH=$PATH:/usr/java/j2sdk1.4.1/bin
export PATH
I'd say you get the last error because you .java was not in the same dir that you issued you command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 03:20 AM
02-03-2004 03:20 AM
Re: Java Question
Kyle