This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes Although activation.jar,mail.jar are in the same folder I get in compile(well?) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Although activation.jar,mail.jar are in the same folder I get in compile(well?)" Watch "Although activation.jar,mail.jar are in the same folder I get in compile(well?)" New topic
Author

Although activation.jar,mail.jar are in the same folder I get in compile(well?)

Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
Although activation.jar,mail.jar are in the same folder I get in compile(well?):
in CLASSPATH I have only mail.jar...
Norm Radder
Ranch Hand

Joined: Aug 10, 2005
Posts: 685
What is the CLASSPATH variable set to?
Open a command prompt and enter: SET
Copy and paste screen here.
To copy the contents of the command prompt window:
Click on Icon in upper left corner
Select Edit
Select 'Select All' - The selection will show
Click in upper left again
Select Edit and click 'Copy'

Paste here.
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
in windows CLASSPATH=.;C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.18\lib\servlet-api.jar;C:\Program Files\Java\javamail-1.4.3\javamail-1.4.3\mail.jar;C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.18\lib\jsp-api.jar;C:\JSPAdv\Lesson4\WEB-INF\lib\struts-core-1.3.10.jar;C:\Program Files\Java\jre6\lib\ext\QTJava.zip

IN CLI=> I think differ???

Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\Users\User>set
ALLUSERSPROFILE=C:\ProgramData
ANT_HOME=C:\apache-ant-1.7.1-bin\apache-ant-1.7.1
APPDATA=C:\Users\User\AppData\Roaming
asl.log=Destination=file;OnFirstLog=command,environment
CATALINA_HOME=C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.18
CLASSPATH=.;.;c:\PROGRA~1\java\JMF\lib\sound.jar;c:\PROGRA~1\java\JMF\lib\jmf.jar;c:\PROGRA~1\java\JMF\lib;
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=USER-PC-ONE
ComSpec=C:\Windows\system32\cmd.exe
DFSTRACINGON=FALSE
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\User
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_15
LOCALAPPDATA=C:\Users\User\AppData\Local
LOGONSERVER=\\USER-PC-ONE
MSWorksProductCode={15BC8CD0-A65B-47D0-A2DD-90A824590FA8}
NUMBER_OF_PROCESSORS=4
OnlineServices=Online Services
OS=Windows_NT
Path=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files\Java\jdk1.6.0_15\bin;c:\windows\system32;c:\windows;C:\apache-ant-1.7.1-bin\apache-ant-1
.7.1\bin;C:\Program Files\jEdit;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Sun\SDK\bin;C:\Program Files\AVG\AVG9
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PCBRAND=Pavilion
Platform=HPD
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 7, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=1707
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
PROMPT=$P$G
PUBLIC=C:\Users\Public
QTJAVA=C:\Program Files\Java\jre6\lib\ext\QTJava.zip
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\User\AppData\Local\Temp
TMP=C:\Users\User\AppData\Local\Temp
TRACE_FORMAT_SEARCH_PATH=\\NTREL202.ntdev.corp.microsoft.com\4F18C3A5-CA09-4DBD-B6FC-219FDD4C6BE0\TraceFormat
USERDOMAIN=USER-PC-ONE
USERNAME=User
USERPROFILE=C:\Users\User
windir=C:\Windows

C:\Users\User>
Norm Radder
Ranch Hand

Joined: Aug 10, 2005
Posts: 685
Sorry, I don't know what you mean by:

in windows CLASSPATH=...

vs

IN CLI=> I think differ???


The values shown by the SET command don't show the same CLASSPATH settings.

Can you put the needed jar files on the classpath option for the javac command?
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
environmwnt var> system var I mean windows CLASSPATH

cli CLASSPATH for SET command.

well why they differ? I am going now try with classpath in javac...
Norm Radder
Ranch Hand

Joined: Aug 10, 2005
Posts: 685
Where is "windows CLASSPATH" set and how do you display it?

The SET command shows what the Windows environment variable CLASSPATH value is.
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
I copy it from GUI...why differ? anyway run with classpath from javac success but when on local server appeared on remote not appeared error below:

Java Plug-in 1.6.0_17
Using JRE version 1.6.0_17-b04 Java HotSpot(TM) Client VM
User home directory = C:\Users\User
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------


java.lang.NullPointerException
at sun.plugin2.applet.Plugin2Manager.findAppletJDKLevel(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.NullPointerException



2 jars
1 html
1 class files in the same normal directory not special


Norm Radder
Ranch Hand

Joined: Aug 10, 2005
Posts: 685
Looks like time for a new thread. You've solved the classpath problem.
Now you need help with the internals of the mail package.

Good luck.
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
try remove threads ... and run ... press only once?
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
why differ the GUI from CLI:SET CLASSPATHs? how set CLI like GUI?
Norm Radder
Ranch Hand

Joined: Aug 10, 2005
Posts: 685
I don't know what CLI is? Can you explain?

What does this mean:
how set CLI like GUI?
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
command line interface with SET COMMAND... GUI go to classpath via system windows ...

the error was that missing two class sub files of type: SMTPApplet$SendAction$1.class

I run this(1) and also removed threads (2nd script, applet, html file) but email not yet come...well?
Norm Radder
Ranch Hand

Joined: Aug 10, 2005
Posts: 685
GUI go to classpath via system windows ...

Can you explain?
I only know of one classpath setting, the environment variable that can be displayed by opening a command prompt window and entering: SET
error was that missing two class sub files of type: SMTPApplet$SendAction$1.class

Where is this class file relative to the SMTPApplet.class file
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
If you right click COMPUTER icon on desktop > Properties > Advanced system settings > enviromental variables > system variables
must be here or must created

can you gues why the two differ cli/gui?


when compiled produced and these class files total 3 with treads and 2 without.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Although activation.jar,mail.jar are in the same folder I get in compile(well?)
 
Similar Threads
New to Java and trying to work with an existing app
Mail variables are not being resolved to a type !
using Java mail API
Relay Access Denied....(HELP..!!!!!)
JavaMail API