× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: classpath problem? javamail problem? javac parameters?
  • From: "Larry Paque" <larry@xxxxxxxxx>
  • Date: Sun, 4 Jun 2000 18:23:04 -0700

I have 3 files in my directory - larrymail.java (mine), mail.jar (sun's 1.1.3) and activation.jar (sun's 1.0.1). 
Shouldn't the command below have worked?  larrymail compiles and runs with no errors on my pc.
Obviously, I am very early in my AS400/Java learning curve.  Any help is appreciated.
 
Thanks,
Larry
 
(In QSH, all files in current directory)
> javac larrymail.java -classpath .;mail.jar;activation.jar                                           
  larrymail.java:13: Package javax.mail not found in import.                                          
  import javax.mail.*;                                                                                
         ^                                                                                            
  larrymail.java:14: Package javax.mail.internet not found in import.                                 
  import javax.mail.internet.*;                                                                       
         ^                                                                                            
  larrymail.java:15: Package javax.activation not found in import.                                    
  import javax.activation.*;                                                                          
         ^                                                                                            
  3 errors                                                                                            
  /ljpjava/mail.jar: 001-0049 Syntax error on line 1: token word not expected, expecting token ")".   
  /ljpjava/activation.jar: 001-0048 Syntax error on line 5: variable substitution not valid.          
  $                                                                                                   

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.