or you can run it with :

java -classpath /home/www/jdbc HelloWorldApp


Ricky Y. Artigas
Analyst/Programmer
Information Technology Division
Easycall Communications Phils., Inc.
418 Arayat St., Mandaluyong City 1550, Philippines
Personal WAP Site: http://www.buzzed.co.uk/mobile/?rya
Company Website: http://www.easycall.com.ph
Tel.no: (+632) 5338001 ext.6574
Mobile:(+63) 0917-8951783
Pager:  141-002955
Email: [EMAIL PROTECTED]


> -------------------------------
> IMPORTANT NOTICE:

> This message (and any attachment hereto) may contain privileged and/or
> confidential information specific to EasyCall. If you are not the intended
> addressee indicated in this message, you may not copy or disseminate this
> message (or any attachment hereto) to anyone. Instead, please destroy this
> message (and any attachment hereto), and kindly notify the sender by reply
> email. Any information in this message (and any attachment thereto) that
> do not relate to the official business of EasyCall shall be understood as
> neither given nor endorsed by the company.
>
>
> -----Original Message-----
> From: blueless [SMTP:[EMAIL PROTECTED]]
> Sent: Saturday, January 13, 2001 4:42 PM
> To:   [EMAIL PROTECTED]
> Subject:      Running Java on Linux ..
>
> Hi...
> I am so new to Java and Servlet..
> I would like to run Java program on Linux ...
> It's so simple example..
>
>
> class HelloWorldApp {
>     public static void main(String[] args) {
>         System.out.println("Hello World!"); //Display the string.
>     }
> }
>
> I got compiled it successfully...
> But when I run the HelloWorldApp App with 'java
> /home/www/jdbc/HelloWorldApp' command..
> It caused error following...
>
> [root@k3 user1]# java /home/www/jdbc/HelloWorldApp
> java.lang.NoClassDefFoundError: /home/www/jdbc/HelloWorldApp
>         at java.lang.Throwable.<init>(Throwable.java:38)
>         at java.lang.Error.<init>(Error.java:21)
>         at java.lang.LinkageError.<init>(LinkageError.java:21)
>         at
> java.lang.NoClassDefFoundError.<init>(NoClassDefFoundError.java:21)
>
>
> See my /etc/profile ...
>
> export JAVA_HOME="/usr/local/jdk1.3"
> export CLASSPATH="."
> PATH="$PATH:/usr/local/jsdk"
> export CLALSSPATH=".:/usr/local/jsdk/lib/jsdk.jar"
> export TOMCAT_HOME=/usr/local/jakarta-tomcat
> export CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat/lib/servlet.jar
> export CLASSPATH=$CLASSPATH:/usr/local/jdbc/mysql/mm.mysql-2.0.2-bin.jar
> export CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat/lib/cos.jar
>
> What am I wrong with this?...
>
> Expert's comments would be thanksful..
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to