Permanantly setting linux classpath
Hello all;
I just searched for this question in the archive to no avail.
How do you set the classpath on a Linux (SuSe specifically if it matters) so that it lives on between sessions and re-boots? I have been using "export JDK_HOME=YadaYada" but this only helps for that session. I am hoping to set this variable for ALL users at one shot (Root et all). Basically I am not sure how/where linux holds it's global environments variables for all users.
Trying to rid myself completely of Windows, and learning the nuances of linux is a bit slow going.
TIA, Will--
The classes of the Java runtime (and extensions) are automatically included, at least when you are using Java2. So I don't think you really want to set a global CLASSPATH for all your users. If you really do, you have to edit the global configuration files of bash. I am not using a SuSe system, so I don't know they exact location on your machine. Look in /etc and /etc/config.d or just type "find /etc -name \*bash\*" and "find /etc -name \*prof\*" - I hope that will find them for you.
Similar Messages
-
I can't set my classpath to compile serlets any help?
I don't understand I'm doing it the way my book says to do it but I can't for the life of me set a freaking class path for my tomcat server so I can compile my serlets here's how it says to do it
C:\Documents and Settings\Compaq_Owner\Desktop>javac -classpath C:\Program Files\Apache Software Foundation\Tomca
t 5.0\common\lib\servlet-api.jar
Can anyone tell me what the hell I'm doing wrong any help is greatly appreciated thanksOk I think I get what your saying but couls someone show me the syntax where to include the source files at and how here's what I did but it couldn't read the file so I'm guessing I'm not putting it in right and also is there a way to permanently set the classpath so I won't have to go through this everytime I want to compile java servlet files?
C:\Documents and Settings\Compaq_Owner\Desktop>javac -classpath "C:\Program Files\Apache Software Foundation\Tomc
at 5.0\common\lib\servlet-api.jar" "C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\jhtp6\WEB-INF\
classes\WlcomeServlet.java"
error: cannot read: C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\jhtp6\WEB-INF\classes\WlcomeSe
rvlet.java
1 error -
Setting classpath permanantly on linux
Helloa folks;
My serach through the archive didn't turn up any answer to this. I am trying to set the classpath variable permanantly on Linux (SuSe). I have been using "export JDK_HOME=YadaYada", but this doesn't live on between sessions and re-boots. How does one permamantly configure this environment variable for all users including root on a linux bo so that it lives on between sessions and re-boots?
TIA, Will-Please, don't cross post! Check answer in
http://forum.java.sun.com/thread.jsp?thread=185668&forum=31&message=594195 -
Setting the classpath permanently
Hoe do I set the classpath permantely so as to avoid having to type
set classpath=.;%classpath%
every time I run java shell.
Your helpwould be greatly appreciated.http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html
http://cs.colgate.edu/APCS/Java/JavaSystemsPages/classpath.htm -
Setting Custom CLASSPATH in BPEL
I want to know How to add classpath to BPEL PM. we have proprietory java packages and jar files( there are huge) that are located in a different location but the same middleware linux server where BPEL s installed. I have developed BPEL proceess (which is using bplex:java code and imports proprietory packages) in Jdeveloper which compiles fine as I have added all these packages/jar files to project library.
However, when I deploy the bpel process to server. It is unable to find the classpath. I came to know that I have 2 options fo rthis to work
1. Add all these jars and packages in the BPEL-INF dir
2. Copy all the Jars and packages to orabpel/system/classes in server
Option 1 is very inefficient as these jars/libs are huge. we have many BPEL processes to develop
Option 2 is also not a viable solution as there will be duplicate copies of classes and there is lot of maintenance involved to sync there custom jars/libs.
Is there any I can include our proprietory classes in BPEL global classpath?
Please help. We are running on BPEL 10.1.2.0.2What about the documentation:
http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/appx_ref.htm#CIABBDAE
1. Add the files into the BPEL client bpelc CLASSPATH:
1. Open SOA_Oracle_Home\bpel\bin\obsetenv.bat. For UNIX operating systems, the file is named obsetenv.sh.
2. Edit the file as follows:
@REM set MY_CLASSES_DIR=%CLASSPATH%
set MY_CLASSES_DIR=%OB_HOME%\system\classes
set MY_CLASSPATH=%MY_CLASSES_DIR%;your_jar_files
2. Add the files into the Oracle BPEL Server bpelc CLASSPATH in either of two ways:
1. Open SOA_Oracle_Home\bpel\domains\default\config\domain.xml (if the default domain is being used).
2. Edit the file as follows:
<property id="bpelcClasspath">
<name>BPEL process compiler classpath</name>
<value>your_jar_files;...</value>
<comment>...</comment>
</property>
3. Restart Oracle BPEL Server.
or
1. Go to Manage BPEL Domain > Configuration on Oracle BPEL Control.
2. Go to the bpelcClasspath property.
3. Enter your_jar_files; in the Value field.
4. Click Apply.
5. Restart Oracle BPEL Server.
3. Add the files into the Oracle Application Server CLASSPATH:
1. Open application.xml, which is in SOA_Oracle_Home\j2ee\home\config\
2. Edit the file as follows:
<library path=your_jar_files/>
<library path="C:\Ora_Home\bpel\system\classes"/> -
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
-
Dears,
In PI 7.1 we are getting one error:
We are getting an u201CSAPClassNotFoundException:u201D. The reason for this is as I got we need to set the classpath in the PI Server.
Please do as below:
The following is an example of the CLASSPATH statement that is used for a Unix/Linux application:
CLASSPATH =.:/home/usr1/mssqlserverjdbc/Driver/sqljdbc_2.0/enu/sqljdbc.jar
Please suggest how can I set this path on AIX ,Is it a env variable.If yes then as I am getting aftre setting ones and logging out this variable will get dissaper.
So please suggest how can i set this path.
SHivamHi,
Where you are facing problem?? r u facing problem when you using JDBC Communication Chanels??
Regards,
Raj -
Setting Linux environment variable
Is there other web site which talks about how to set the environment variable of J2EE for Linux?
I followed this web site
http://www.dougsparling.com/comp/howto/linux_java.html
but after all
when I tired to compile a servlet program... it couldn't be complied. I think the case is that the compiler couldn't find servlet.jar ...
why is that?You have to verify that your CLASSPATH environment variable is set in your account's profile. I use the
bash shell therefore my variables are set in .bashrc
for example my CLASSPATH is set to :
CLASSPATH=.:$J2EE_HOME/lib/j2ee.jar:$J2EE_HOME/lib/locale -
I am unable to set the classpath from unix shell script
) I am new to java, provide me the solution to my problem, as it is urgent
I am unable to execute shell script on unix machine, the code is given below:
Basically it is not setting the classpath
dbUpload .java is astand alone java program to retrieve the report instance statistics from crystal server
Created a jar file from dbUpload.java as
Jar �cvf dbUpload.jar dbUpload.class
Here is mycode(script.sh)
CLASSPATH=/u01/CrystalList/cecore.jar:${CLASSPATH}:
CLASSPATH=${CLASSPATH}:/u01/CrystalList/cereports.jar:
CLASSPATH=${CLASSPATH}:/u01/CrystalList/dbUpload.jar:
Export CLASSPATH
Echo ${CLASSPATH}
Java dbUploadvenkat123,
if the code you posted is the original code of your script - it has some misspellings. Please try this one - it works for me both on solaris and linux.
#! /bin/bash
CLASSPATH=/u01/CrystalList/cecore.jar:$CLASSPATH
CLASSPATH=$CLASSPATH:/u01/CrystalList/cereports.jar
CLASSPATH=$CLASSPATH:/u01/CrystalList/dbUpload.jar
export CLASSPATH
echo $CLASSPATH
java dbUpload -
Hi I am new to Linux classpath. I am using Fedora Core 5 which comes along with jdk1.4.2. I read one of the messages that are posted in another form and set the classpath in the linux in the /etc/profiles folder. The below code I added over there:
JAVA_HOME=/usr/java/jdk1.5.0_08
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/htmlconverter.jar:$JAVA_HOME/lib/jconsole.jar
export PATH CLASSPATH
Now when i run javac -version it is showing the below output.
javac 1.5.0_08
javac: no source files
But when I run java -version it is showing me the below output.
java version "1.4.2"
gij (GNU libgcj) version 4.1.1 20060525 (Red Hat 4.1.1-1)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I don't understand what mistake I am doing. Please guide me and i would like to know how it is showing 1.5 for javac version and 1.4.2 for java version.
Thanks in advance.
SrikanthThis has nothing to do with the classpath and all to do with the PATH.
Somewhere, you have a 1.4.2 JRE in the PATH, before the 1.5.0 JDK and it's JRE.
So if you call javac, it will execute 1.5.0's because the 1.4.2 JRE doesn't have it, but java will be 1.4.2's because that the first one it'll find. -
Form Line Space Work Around (permanently set leading)
Hi All,
new to the forums – I find the format confusing, but I'll try to do my best!
I have discovered a way to permanently set the line space (leading) of a form field. If you all discover a better way, then let me know!
Create a small, multiline text field anywhere. Name it "Reference". This field will become hidden and read only later, so don't worry too much about it.
Enable it to have rich text formatting. This is done in the form field properties under "Appearance".
Exit form field editing. Place a single space in that field (no other characters).
Select that space, then hit command + e (ctrl +e on PC) to bring up the rich text formatting options.
Select a font and size, then press "More."
Click the paragraph tab, then select a line height. I prefer to use the "exactly" option from the drop down menu, makes it the most similar to setting type in Illustrator or Indesign.
We're halfway done! Exit out of this field and save.
This next part gets a little trickier because it requires some event javascript.
Create a new miltiline text field. Worry about this one more, because this is the one the user will use. For this example, name it "Text"
Like before, enable it to be multiline and rich text in the appearance settings.
Go to the "Actions" tab of the form field properties.
Choose event "on blur" and action "run javascript".
Insert the following code:
if (this.getField("Text").value == "") {this.getField("Text").richValue = getField("Reference").richValue;}
This code tells the form field that when exited, if it is left empty, it should copy the exact rich text found in the form field "reference."
Now set the field "Reference" to read only and hidden under "general" in form field properties. Exit form field editing. Select "Text" and type anything you want, then delete it. Click the field again. There is now a single space there! (invisible to user at first) that has saved all your formatting! If the user starts typing, it will be properly formatted. Make sure to save your document with the field "Text" having only the properly formatted space.
Other Notes:
There 100% is a value in the javascript to set line height. Otherwise, copying the ".richValue" of a field wouldn't allow this to work. Problem is, no one seems to know the syntax and can't find it in the API. My challenge to you guys is to find it! We've proven it exists. If we can find the syntax then we can avoid these complicated workarounds.Sorry, when I instruct you to adjust settings in the "appearance settings," I actually meant the options settings. Sorry for the confusion!
-
Help, how to install jvm and set the classpath using a batch file
hello,
i have created my java application and now have to create an installable / batch file which will install the JVM on the users machine and also the java packages such as javamail and the class files that i have created . it also has to set the classpath.
i would like to know if anyone can tell me how to go about iti.e. how can i install the JVM using a batch file and then place the javamial packages etc in the apropriate directory .
or is it advisable to explain it to the user how to go about it in tht user manual.
and would also like to know that if i install the JVM will the path for the java.exe be set
or will i have to set the path explicitly from the "batch file" so that the user can run the application without and problem just by running the java command followed by filename from the command prompt.hi,
I have windows and I use it.
The only problem with the free edition is that you can only create 1 launcher and that during the installation you get 1 popup showing that the installer was created with an unregistered version.
Stijn -
tabs: previous versions of firefox allowed for saving all tabs with a group name, so you could open them all again later at your convenience. The new firefox 4.0.1 has a new tab feature, but the tab groups do not seem to persist once you shut down, and are not saved as a folder in your bookmarks. What am I missing? How can I do what I want (save permanent set of tabs as a group that is available later, like the folder of bookmarks was)? Thanks
Right click one of the tabs, the "Bookmark all tabs..." option.
Does it do what you want? -
Is there a way to permanently set the mailbox order?
Is there a way to permanently set the sequence in which mailboxes are displayed in the left-most panel of Mail? I can drag and drop the mailboxes into the order I want, and they seem to stick around - at least until I update any of the accounts. The moment I update an accounts prefernces in Preferences, Accounts, the display order is set to the same order that appears on the preferences display.
I have a fairly large number of email accounts, and often have to tweak settings, so it's a bit of a pain to have to reset the order every time I make a change.
This is occurring on both my MBP and my iMac.Same question.
I recently left Snow Leopard to Mountain Lion.
Previously, in the side bar of Mail, (the one you make visible using "Show" in a previous post here), I was able to drag and drop any of the Reception mailboxes to the place I wanted to select, to put them in the order I wished, and this order remained until I decide to change it.
This seems not possible any more, or... just for the current session. If I close Mail and reopen, Reception boxes are re-ordered in alphabetic way.
Any way to make my choice permanent as before ???
To make it more clear, ordering my way is possible by drag and dropping for private mailboxes, but not for reception mailboxes associated to different mail accounts, the order is lost once Mail is closed. -
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
Maybe you are looking for
-
How can I get arefundfor my mistakes purchasing worth $109.99 worth of chips?i caniget a refund of whatever chips I didn't use . Thanks aida
-
Problems on Windows 7 Professional 64 with PHP data service
I've created a data service using PHP in a PHP Eclipse project and I'm trying to connect to it from my new Flash project. When I try to create a custom data type via the Configure Return Type dialog, "Auto detect the return type from sample data" rad
-
Rel 12 - How to create a new APPS connection from custom Java/Shell Script
Hi, I am looking to write a custom JAVA code / Shell Script which needs to establish a connection to execute a PL/SQL API on Rel 12 db. The challenge is to be able to connect without specifying APPS Password anywhere (just like Oracle Apps does it).
-
Close JavaWebstart applet window
Hi all, I am trying to use Java Webstart to launch my forms applications and it looks good, all works fine, except one thing: 1) When I close the forms application, the Webstart Applet window does not close.. Does anyone have an idea how to solve the
-
Incompatibility issues with the new flash pplayer
Ever since I installed the new version of flash 11.5 I have had major issues with watching video etc. I am also into astronomy. Myself and many others have paid a lot of money to use Sloohs robotic telescopes in their canary islands observatory. I no