How to point the classpath to "CLASSPATH" system variable?
Hi Experts!
I'm trying to create a web dynpro application for sending a simple email using the tutorial that can be found here.
I was actually able to make the program work using Java Swing, but not in my web dynpro implementation.
According to the tutorial, the jar files should be located at "CLASSPATH" system variables to make things work.
When I tried printing the URL of the classpath of the web dynpro app, it is pointing to a different location from what I have defined in the system.
I have created the "CLASSPATH" system variable at "C:\CLASSPATH\lib" with the jar files on it. Here's the correct classpath using my swing application:
/C:/CLASSPATH/lib/commons-beanutils-1.8.3.jar
/C:/CLASSPATH/lib/commons-codec-1.4.jar
/C:/CLASSPATH/lib/commons-collections-3.2.1.jar
/C:/CLASSPATH/lib/commons-configuration-1.7.jar
/C:/CLASSPATH/lib/commons-digester-1.8.1.jar
/C:/CLASSPATH/lib/commons-httpclient-3.1.jar
/C:/CLASSPATH/lib/commons-lang-2.6.jar
/C:/CLASSPATH/lib/commons-logging-1.1.1.jar
/C:/CLASSPATH/lib/ewsjavaapi-1.1.5.jar
/C:/CLASSPATH/lib/javamail-ews-bridge-0.0.8.jar
/C:/CLASSPATH/lib/jcifs-1.3.15.jar
/C:/CLASSPATH/lib/mail-1.4.jar
/C:/CLASSPATH/lib/slf4j-api-1.6.4.jar
But the web dynpro app is pointing at different directories.
@Printing project classpath...
/E:/usr/sap/GOS/J03/exe/jstart71.jar
/E:/usr/sap/GOS/J03/exe/sapjvm_5/lib/jvmx.jar
/E:/usr/sap/GOS/J03/exe/sapjvm_5/lib/jvmx_tools.jar
/E:/usr/sap/GOS/J03/exe/jre/lib/iqlib.jar
/E:/usr/sap/GOS/J03/exe/sapjvm_5/lib/tools.jar
/E:/usr/sap/GOS/J03/j2ee/cluster/bin/boot/sap.com~tc~bl~jkernel_boot~impl.jar
/E:/usr/sap/GOS/J03/j2ee/cluster/bin/boot/jaas.jar
/E:/usr/sap/GOS/J03/j2ee/cluster/bin/system/sap.com~tc~bl~bytecode~library.jar
/E:/usr/sap/GOS/J03/j2ee/cluster/bin/boot/memoryanalyzer.jar
This is the code I used for printing the classpath:
ClassLoader cl = ClassLoader.getSystemClassLoader();
URL[] urls = ((URLClassLoader) cl).getURLs();
for (URL url : urls) {
System.out.println(url.getFile());
How can I set the correct classpath to the "CLASSPATH" system variable?
Erwin,
You wil need to add the jar files to a Library DC and then reference them in your Web Dynpro app.
Take a look at this tutorial
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/006a6229-b1ed-2e10-0c8c-cc5673cf268f?QuickLink=index&overridelayout=true
Stefan
Similar Messages
-
How to set the classpath in windows operating system
hi,
how to set the classpath in window operating system
i want this help for setting the classpath for the tomcat
please help me
thank you
darshan soniOpen autoexec.bat in texteditor. This is an example from my autoexec, win me. Running resin
SET CLASSPATH=c:\jdk1.3.1_01\bin\;c:\andreas\resin\bin\jsdk23.jar;c:\Jimi\JimiProClasses.zip;
SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;c:\jdk1.3.1_01\bin\;c:\andreas\resin\bin\jsdk23.jar;c:\Jimi\JimiProClasses.zip;C:\Program\MtsAndreas -
How to set the CLASSPATH in Unix Server
Hi, everyone~
Do anyone noe how to set the CLASSPATH in the hp-ux server? I tried the setenv CLASSPATH, but not working.. I think should use export. But my jsp pages still cannot working, dunnoe y?
I wonder is the hp-ux support jsp and servlet or not?
In order to let the jsp and servlet to run properly in the unix server, what kinds of steps should taken ?
Hope somemore who experience with this situation b4 can give me some guidance.. Thanks~~
regards,
tzeyikTomcat ignores any and all CLASSPATH environment variables. Even if you could figure out how to set it, Tomcat wouldn't use it.
Better to learn how Tomcat's CLASSPATH works and how to deploy Web apps properly. - MOD -
How to change the classpath in rmiregistry
I am storing remote object stubs in an RMI registry as part of my application. When I try to bind my objects to the rmiregistry started by the kxs process on port 1099, I get class def not found errors because that rmiregistry does not have my classes in the classpath. My classes are in the iAS classpath because I added them through the registry.
When I start my own rmiregistry on a different port and set the classpath environment variable to include my classes, then I have no problems.
Does anyone know how to change the classpath for the rmiregistry started by the kxs process?
I am running iAS sp3 on Windows 2000 adn Solaris
Thanks,
MarkHi,
I would like to help, but could you kindly clarify what rmiregistry
means ?
Regards
Raj
Mark Priest wrote:
I am storing remote object stubs in an RMI registry as part of my
application. When I try to bind my objects to the rmiregistry started
by the kxs process on port 1099, I get class def not found errors
because that rmiregistry does not have my classes in the classpath.
My classes are in the iAS classpath because I added them through the
registry.
When I start my own rmiregistry on a different port and set the
classpath environment variable to include my classes, then I have no
problems.
Does anyone know how to change the classpath for the rmiregistry
started by the kxs process?
I am running iAS sp3 on Windows 2000 adn Solaris
Thanks,
Mark
Try our New Web Based Forum at http://softwareforum.sun.com
Includes Access to our Product Knowledge Base! -
How to set the classpath for external .jar files after importing?
Hi techs,
How to set the classpath in WSAD5.1.2 after importing the .jar file to the WEB-INF/lib folder.
urgentI got it.
after importing the jar file to the perspective,we need to right click on project name, go to proprties,
goto java build path,
there we need to include the external jar files. -
How to set the classpath in CVM?
Hi everybody,
experimenting with the J2ME Personal Profile Runtime Environment on a Linux PC I wonder how to set the classpath. The command line options only allow me to set the bootclasspath.
My original problems deals with determining the codebase for a class that is contained in a jar.
1) If I put this jar into the bootclasspath, that class is found and can be loaded, but the codebase (retrieved using class.getProtectionDomain().getCodeSource) is NULL.
2) If I put it into the classpath by using the command line option -Djava.class.path=... the class cannot be found by the ClassLoader.
3) If I put the jar into both, the classpath and the bootclasspath, the latter one is applied and result 1) shows up.
Any idea how to work around this?@see http://forum.java.sun.com/thread.jsp?forum=8&thread=410868
-
I am using the OS: Win2000 Server.I need to connect to some remote DataBase,but I
don't know how to config the driver in the CLASSPATH environment variable, my Problem is: when I import the oracle.jdbc.driver.OracleDriver ,and run the program, it warns to me that it cannot find the class,and i know i didnot config the CLASSPATH in environment variables, so I want someone to tell me how to config it ,and where should the file "class12.zip" be placed !
Thank you! maybe the problem is a piece of cake for you ,but now i do not know how to deal with it!Hi ,
try this,
http://myjdbc.tripod.com/basic/jdbcurl.html
Regards
Elango. -
How to load a class , which isn't in the classpath environment variable.
Hi, you folks.
I have one problem. I want to load a class, which isn't in the classpath
environment variable and I don't want to put into classpath. which method
JVM can use to load it?
Waitting for your sage advice.
Regareds
Hunter.XiaoYou will have to write your own ClassLoader, or use something like URLClassLoader (I've never used this myself, but I've seen it mentioned elsewhere in this forum). Look here.
-
How To Display the directories of a System.
How To Display the directories of a System.
Hmm I think you need to be more specific. Do you mean like this:
File f = new File("c:/");
File[] fs = f.list();That lists all the files in that folder, then you can use the method isDirectory to check it. Mind you, you would have to go though every folder. -
How to take the data from sage system to sap r/3
hi expects,
how to take the data from sage system to sap r/3? which adapter is to be used?what is the format of data in sage system?how the scenarios will work ? please help me in solving this problem?hi rohit,
the data transfer can be done by using SOAP adapter
do chk this link
http://www.sage.org/lists/sage-members-archive/2001/msg01718.html
http://www.sage.org/lists/sage-members-archive/2001/msg01739.html
thanx
Sampath -
How to change the language of administrator system message in outlook
I wonder where is the option which changes the language of the text
related
to : Your mailbox is over its size limit send by the system
administrator ?
Some mailboxes get this message in French and other in
English ?
Is anyone can help me ?
I work with French Outlook 2003 sp2 and
English Exchange server 2000 sp3
I try to change the regional setting on the
server but nothing has changed.
Thanks,Hi,
Please refer to this duplicate thread below:
http://social.technet.microsoft.com/Forums/en-US/5afe1e1a-82a9-445f-bcce-a76173ceb6bb/how-to-change-the-language-of-administrator-system-message-in-outlook?forum=outlook
Regards,
Melon Chen
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
How to find the Version of CRM system
Hi All,
I have to install CRM system and I dont have any other information other than the EWA Report, Can any one let me know how to find the Version of CRM system and we dont have Java installed in it (Generally we check WEBCUIF but as we dont have Java I cannot see the Package). Can I go with the CRMUIF ?? .
I have Pasted the information of Support Package Maintenance, that is available in EWA Report.
BBPCRM
600
4
13
SAP BBPCRM Server
CRMUIF
600
4
17
SAPK-60004INCRMUIF
SAP CRM User Interface Framework
PI_BASIS
2005_1_700
16
26
SAP R/3 Basis Plug-In
SAP_ABA
700
16
29
SAP Application Basis
SAP_AP
700
13
29
SAP_BASIS
700
16
29
SAP Basis Component
SAP_BW
700
18
31
SAP Business Information Warehouse
ST-A/PI
01P_700
0
SAPKITAB7I
SAP Service Tools for Applications Plug-In
ST-PI
2008_1_700
6
8
SAP Solution Tools Plug-In
Please let me Know. Thanks in Advance.
VijayHi,
Logically your Status bar should show that.
Login to gui. --> system -> Status
and then you should see the crm version in your Component version.
SAP CRM ABAP 6.0
You should go with
BBPCRM
600
Thanks
Rishi abrol -
How to active the transformations in production system
HI
How to active the transformations in production system when Time stamp error occured in SAP BI.
In SAP BW we use RS_TRANSTRU_ACTIVATE_ALL for tranfer rules activation.Is there any chance Activation allowes in production system witout any ABAP programme running.Hi Gkreddy,
There is a specific program for that: RSDG_TRFN_ACTIVATE. It will also re-activate the related DTPs.
Please check the following SAP Notes:
#1408161 - Program for transformation activation.
#1471117 - SP25:RSDG_TRFN_ACTIVATE skips if M version has OBJSTAT 'INA'.
BR -
How to check the BW and BIA systems are up and working fine.
Hi friends,
how to check the BW and BIA systems are up and working fine. And also what is ICM, how to check whether it is working properly or not.
ANd what is name resolution and IP , how to check whether this is running fine.
regards, balu.Hi,
you can use process monitoring or the alert function in the standalone TREXAdmin tool.
ICM:
http://help.sap.com/saphelp_nw04/helpdata/EN/0a/a7903febb15a7be10000000a11405a/content.htm
name resolution
http://en.wikipedia.org/wiki/Domain_Name_System
IP:
http://en.wikipedia.org/wiki/IP
Please also have a look at the transactions TREXADMIN and RSDDBIAMON2.
I think it´s better if you use the forum search and google/wikipedia before you ask such questions.
Best Regards,
Jens -
How to find the source and target systems of an imported Transport Request?
Hello,
How to find the source and target systems of an imported Transport Request?
chinna.Hi Chinna,
In your landscape the TMS must have configured.Let assume that you have four six systems in the land scape.
DEV->DEV1->QUA->PRD and other two systems (TR1 ,TR2)are at different domain amd both are connected to QUA and the requests are forwarded from there.Here normally the flow willl be from DEV to DEV1, then DEV1 to QUA and QUA to PRD.For other two systems (TR1 ,TR2 )the source system will always be QUA.
Regards
Ashok
Maybe you are looking for
-
Problems with reports and XML-publisher - No XML
Hi! I'm having a problem with Apps and XML-publisher. I made a report file, which queries some views. When executing in reports, I get all the data I expect. Now, when I upload the reportfile to Apps and let it generate XML, my xml-file is empty (wel
-
MP3 AND VIDEO FILES FREEZE/SKI
Hi, Just recently my sound for my Creative Inspire 4. 4400 has been messed up. I will listen to MP3s or watch video files and my sound/video just starts to freeze/skip. I have reinstalled drivers 3 times and no go .. someone please help !!
-
How to use contains() function in bpel?
Hi Am facing a problem in using contains() function in a switch case... my condition inside a switch case is contains(bpws:getVariableData('singleSIS'),bpws:getVariableData('singleSIS_check')) where the variable 'singleSIS' has a value 'ABCDE' and 's
-
Foreign Trade Export Procedures
Hi, we are planning to implement the foreign trade export for Algeria. Pl let me the procedures for export trade and also the best practices used for this. Regards Ravi
-
Which jar files for pcm.system.ISystems package?
Hi , Which jar files are needed for the packages: com.sap.portal.pcm.system.ISystems com.sap.portal.pcm.system.ISystem and under which path I coul dfind them. Thnx Regards Meesum.