Environment variable setup
I am using WIN XP PRO and installed jdk1.5.0_07 as ADMIN.
Added jdk1.5.0_07\bin to the right end of lines of both CLASSPATH and path. In the cmd prompt window the javac is not recognized as an internal or external command, operable program or batch file. And jdk1.5.0-07\bin the system cannot find the path specified. I do have QuickTime on this system which, I removed the variable from the string after not being able to use my new install Sun java. Quick time had a QTJAVA = value QTSystem\QTJava.zip, not sure if this is part of my problem? Thanks apple236
When i enter the javac at cmd, it now shows the javac switches, but when I
enter the jdk1.5.0_07 the same old problem. Notice that the directory CaptainM suggested wasC:\Program Files\Java\jdk1.5.0_07\bin\and this was not the one that you were
originally using. If you can see the information about the switches when you run
the javac command then the PATH contains the java bin directory as it should.
You should check that this happens consistently - ie, that the PATH variable has
been permenantly changed.
but when I enter the jdk1.5.0_07 the same old problemAssuming that the java bin directory is at the location CaptainM suggested,
then the following should identify the javac.exe filec:\
cd "\program files\jdk1.5.0_07\bin"
dirIt is important to get the PATH correct before you try anything else. To repeat:
the javac command should consistently show a list of switches.
I decide to try a couple of simple java programs by entering javac
Example.java I get 1 error that I think is entered correctly at cmd Exception
in thread "main" java.lang.NoclassDefFoundError:ExampleUse the cd command to go to the directory containing Example.java, then
enter the commandsdir
javac -cp . Example.java
java -cp . ExampleThe first command checks that you are in the right place - you
should see Eample.java listed. The second compiles Example.java, and
the third runs the compiled program. If you get any errors, post the
Example.java file you are using, and the exact output you get from the
commands.
Similar Messages
-
J2EE Installation: Environment variables SETUP?
HI there
Can anyone help me please. I just installed J2EE and was looking for the sdk folder to set the environment variables. But instead i found a jdk folder which i am not sure about.
Does anyone know what environment variables do i set for J2EE.
Through some websites; it says set <J2EE_Home>\bin and also <JAVA_HOME>\bin where JAVA_HOME points to sdk1.4.2_03 (something like that).
Am i missing anything in downloading? I mean do i have to download J2SE separately.
I followed the following website for downloading
http://java.sun.com/j2ee/1.4/download-dr.html
&then "Download the Java 2 Platform, Enterprise Edition 1.4 SDK Developer Release."
Please HELP
ThanxHi
thanx for replying
actually the jdk folder created in my directory just says jdk.
The README filefrom jdk folder says the following as the header " Java(TM) 2 SDK, Standard Edition Version 1.4.2"
Also if i go through start--> programms--> sun microsystems. It shows me J2EE1.4SDK. So after Microsystems -->its J2EE1.4 SDk ---> About J2EE1.4SDK and other options like Admin ocnsole, Deploy tool etc.
Do u still think i have to download SDK?. Please let me know
Thanx -
Best practices for defining Environment Variables/User Accounts in Linux
Hello,
After reading throught the Quick Install guide for 10gR2 on x86_64 Linux, I see that it is not recommended to define ANY variables in .bash_profile.
I'm hoping to get a Best practices approach for defining environment variables - right now we use the oracle linux account for administration including sql*plus. So, where should the myriad variables be defined? Is it important enough to create a user account in linux to support best practices?
What variables, exactly, should be defined? It seems that LD_LIBRARY_PATH is no longer being used?
Thanks in advance
DougSomething that I've done for years on unix/linux boxes is to create a seperate environment variable setup file for each instance on the box. This would include things like ORACLE_HOME, ORACLE_SID, etc. Then I would create an alias in my .bash_profile that would execute this script. As an example, I would create a orcl.env file that would hold all of the environment variables for this instance. Then in my .bash_profile I would create a line like the following:
alias orcl=". $HOME/orcl.env"
Then from anywhere you could type orcl and you would set your environment to connect to that database.
Also, if you are using 10g, something else that is really nice if you are using sqlplus, and you connect to different databases without starting a new sqlplus session is to set a parameter in your $ORACLE_HOME/sqlplus/admin/glogin.sql file:
set sqlprompt "_user 'at' _connect_identifier >"
This will automatically change your command prompt to look like this:
RALPH at ORCL >
if you connect as GEORGE, your prompt will immediately change to :
GEORGE at ORCL >
This way you can always know who and where you are connected to.
Good luck! -
Setup JAVA_HOME n CATALINA_HOME environment variable
Hi there
im new in Java Servlet programming... im confused how to setup JAVA_HOME n CATALINA_HOME environment variable... if any1 of u know this plz help me to how to setup it... it will help me very much.
thanks in advance
112Once you have identified the JDK install path:
1. Right click on the My Computer icon on your desktop and select properties
2. Click the Advanced Tab
3. Click the Environment Variables button
4. Click New
5. Enter the variable name as JAVA_HOME
6. Enter the variable value as the install path for the Java Development Kit.
7. OK
Next you have set an environment variable CATALINA_HOME that contains the pathname to the directory in which Tomcat 5 has been installed, the same way you set the JAVA_HOME ev. -
To setup environment variables in Linux like sqlplus, emctl etc
Hi,
how can setup environment variable like sqlplus, emctl, etc in Linux.
what i mean is from any directory i should be able to invoke sqplus, emctl etc
is this posisble in linux.
THanks,
Philip.Hi Hunter,
this one worked great. this is really cool man.
i also have a http server running for my htmldb forms/reports.
i created a environment variable saying
"HTTP_HOME=/home/oracle/oracle/product/10.2.0/http_1"
i need to go to $HTTP_HOME/Apaceh/Apache/bin"
and i give the command "./apachetcl start" for the http server to start running.
how can i make this apachectl variable to work so that form any directoy i should be able to give "apachectl start" comand and it runs.
Can u help me please.
i think if i do this also i can get some more understanding.
the command u gave worked great, but i did not understand the
LD_LIBRARY_PATH and CLASSPATH. what are they for.
Philip. -
How to setup ENVIRONMENT VARIABLES in WIN2K installation?
Hi experts,
I am trying to install nw04s on wink2 server, I want to know what environment variables do I need to setup?
Also, Export cd's, there are 8 cd's, one of them exe, else are different. How would I make it working.I know in linux how to make it working not in windows
Thanks,hi,
In win2k you need to set the " system and user variable " for java
right click on my computer->advanced->environment variables
1> name: JAVA_HOME ( this must be in capital)
value: c:\j2sdk1.4.2_11
2> edit the "path"
and ;c:\j2sdk1.4.2_11\bin
then save.
after this check this through
cmd
give the command "java -version" -
Installed jre and jdk and setup environment variable
installed jre and jdk and setup environment variable but still i am not able to rum program?
cannot find symbol class string
package system does not existif removing 1 jre will help your disk space problems
then you urgently need a bigger disk.
Btw i never notice Java installing 2 different JRE's
so i dont think it will harm remvong one, make sure
you dont delete one you are using :)I assume that you don't run MS os; that's the only one that installs 2 JRE's.
To OP: This has been discussed by Sun, but no changes have been announced. Maybe the relocation in version 1.5 of the private (aka developer) code to the Program Folder is a start of this change? -
I am using Flash Builder 4.7 to build an Actionscript AIR project. The project embeds a number of png files from my local directory and I have been using absolute paths which all works fine.
I have a laptop with which I want to start developing the same project - I set up a git repository that both the laptop and main pc can pull from and so I can get the source where I need it and push it back to the central repository.
My problem is that the absolute paths for the embed commands don't work on the laptop as it has a different filesystem setup (Windows 8 with one drive as opposed to Windows 7 with a SSD and a data drive). I thought the solution would be as easy as using an environment variable to specify the path which could then point to a different physical directory on both machines, i.e:
[Embed(source = "DEVELOPER_RESOURCES/graphics/are/here.png"]
I did a bit of research and there was quite a lot mentioned about setting up resource directories using path variables which I worked through but I just can't get it to compile. The Actionscript compiler just won't find the png files however I specify the path. I tried something with a FLEX project and the compiler didn't complain but I think this is because the compiler for FLEX uses a different convention.
[Embed(source ="/Project Name/DEVELOPER_RESOURCES/graphics/are/here.png"] works with FLEX but not Actionscript.
So does anyone have a recipe for using the Embed command referencing assets using an environment variable that works across multiple machines with different file structures?I managed to find a solution on Windows which was to use symlinks and absolute paths. You an basically point one directory to another so I did something like:
mklink c:\developer_resources c:/the/local/path/to/my/resources
and then reference all resources as c:\developer_resources\...
Now as long as a developer machine has the right link (from c:\developer_resources to the place where the resources are kept) then it seems to work.
This doesn't however work for Mac and certainly isn't a solution for passing files between Mac and windows -
Using custom environment variables in the profile path
Hi,
I've created a custom environment variable that I've setup on two computers and the domain controllers. I want to use this in the profile path in user properties. However when users log in the variable is taken literally rather than being converted
into the value. For example
\\fileserver\share\user\%myenv%.v2 is generated rather than \\fileserver\share\user\envdata.v2
If I add in another built-in variable such as %OS%, that converts properly but any time I use a custom variable Windows just doesn't use it during the logon process. If I open up Explorer and type in the path to my data as it should be it works fine
so Windows is definitely picking up the variable, just not using during the logon process. I can't seem to find a TechNet article that states custom variables can't be used in profile paths.
Has anyone else come across this?
Thanks,
TimHi,
Thanks for your post.
So did you create the environment variable using group policy? If yes, i would suggest you use 'Create' and not 'Update', the variable is then held through reboots.
Please refer to this blog, hope it will be helpful
http://blogs.technet.com/b/askds/archive/2013/07/31/roaming-profile-compatibility-the-windows-7-to-windows-8-challenge.aspx
Regards.
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
I'm sure this can be done as I know we used something similiar at my old work place, below is an image showing what I am attempting to do.
We used this to create more portable / shareable assets files which when symbols are linking to code, the code was very often in different directories on different machines.
So we had set up environment variables in the OS to point to source directories and then used these variables in the source paths.
As long as everyone had these variables set up then it would all work.
Anyone know the correct way to do this in Flash CC
Thanks in advance!
Best Wishes
Rhys Thomassinious the problem with doing that is that the changed path gets into the code repository as well, so you wind up with everyone going back and forth changing it to their own value, which is a hassle. If you use relative paths and a standard project setup, then it all "just works" without a problem.
For example, this is the setup I use:
.dev
.thisProject
.Flash1
Flash1.as
.Flash1
Flash1.xfl
.view
.audioAssets
.customViews
.SoundLib
SoundLib.xfl
SoundLib.swc
.bin <swfs are output here
.xml
.core
.control
.model
.service
.view
We have a "base project" that you check out to start a new project (we do heaps of similar work), and the paths are already set up to be relative. Having each project point to its own copy of the core code allows for fine-grained control of which revision you're using--we've even pointed deliberately to old versions or branches on rare occasions.
The bin folder is actually shared with the website repository, which is in a different directory from the Flash source code (in the website, it has a different name). This allows the generated swfs to be easily updated and ensures that the latest XML is being used both for development and on the site.
The "thisProject" folder actually includes a Flash Builder workspace with all the standard shortcuts, etc., already set up. This is primarily because of how the "default path" works when you create a new Flash Pro project in FB. Because we output a level up from the workspace, we hack the .metadata folder every time, but that's a small change. -
Name of the file that contains the environment variables
What is the name of the file (in Windows) that have the setup of the environment variables of the applications.
For example : APPL_TOP, AU_TOP, etc...
Best RegardsIn registry key
HKLM/Software/ORACLE/APPLICATIONS/11.5.0/<SID>_<HOSTNAME>
If you want to start a command shell with all these system variables:
run <APPL_TOP>\envshell.cmd -
How to Specify the environment variable JCE_POLICY_ZIP and restart
Hello All,
I am installing the ABAP SAP NetWeaver 7.01 SR1 ABAP Trial Version.
sapinst.exe installed successfully.
I am installing the sapinstgui.exe but I got the following message:
Program is starting... Please wait!
Path: C:\Users\George\AppData\Local\Temp\sapinst_exe.6220.1246290325
jre\bin\java.exe
For the requested processing mode java policy
files within the used SAP JVM are needed.
Specify the environment variable JCE_POLICY_ZIP and restart.
See also SAP note 1238121.
Exit status of child: 10
JRE is installed in C:\Program Files\Java\j2re1.4.2_19
How do I specify the environment variable JCE_POLICY_ZIP?
Thanks
George
Edited by: George King on Jun 29, 2009 9:01 PMHi everyone,
I had the same problem and found the solution !
I was trying to setup the GUI thanks to sapinstgui.exe from the trial download folder and I got the exact same message,
The problem is not the policies but the installation file.
The installation file for the GUI is located at :
<extract_folder_SAP_trial_version>\GUI\SAP_GUI_FOR_WINDOWS(...)\SAP_GUI_for_windows_(...)_Components.exe
Hope it helps !
Nicolas -
How to include Windows environment variables in e-mail action scheduled task
Hello Support,
Is it possible to include Windows environment variables such as %username% or %computername% in the subject line or body of the "Send e-mail" action item of the Task Scheduler? For example, I would like when I setup a scheduled
task to perform a certain task and send an e-mail message, the email should include either the user name or computer name in the subject line and body of the e-mail. Is that possible?
ThanksHi,
You can create a new Scheduled Task preference item to solve your requirement.
Checkout the below link for more information,
http://technet.microsoft.com/en-us/library/dd851678.aspx
Regards,
Gopi
JiJi
Technologies
I created a scheduled task and that does not provide what I need. The scheduled task will simple send an mail, but I want to know from which machine or user triggered the email. I also tried adding the batch file to the scheduled
task and that did not work even though the scheduled task has the following settings.
User Configuration >> Prefence >> Control Panel Settings >> Scheduled Tasks
When running the task, use the following user account
NT AUTHORITY\System
Run whether user is logged on or not
Run with highest privileges HighestAvailable
Configure for: Windows 7
I also tried with Computer Configurations -
How do i get value of Environment variables from a java program?
Hai,
I have a setup file wherein i set the path for the root directory , in the following way.
setenv TPEROOT "/home/systpe/khurram/changes"
when i give echo $TPEROOT
the path , home/systpe/khurram/changes , is displayed on the console
If i want to assign the $TPEROOT to a string variable str in my java program , then how can i do it.
I want to use the value of the environment variable in my program.
Any help in this regard would be very useful
Thanks
khurramjava -DTPEROOT=$TPEROOT myőackage.myclass myargs
-
Default ZSH configuration is overriding PATH environment variable
After debugging why PATH is not getting set properly in zsh, I figured out that the default Arch configuration is overriding PATH.
The load order for zsh config files is:
(Taken from http://shreevatsa.wordpress.com/2008/03 … shrc-etc/)
+----------------+-----------+-----------+------+
| |Interactive|Interactive|Script|
| |login |non-login | |
+----------------+-----------+-----------+------+
|/etc/zshenv | A | A | A |
+----------------+-----------+-----------+------+
|~/.zshenv | B | B | B |
+----------------+-----------+-----------+------+
|/etc/zprofile | C | | |
+----------------+-----------+-----------+------+
|~/.zprofile | D | | |
+----------------+-----------+-----------+------+
|/etc/zshrc | E | C | |
+----------------+-----------+-----------+------+
|~/.zshrc | F | D | |
+----------------+-----------+-----------+------+
|/etc/zlogin | G | | |
+----------------+-----------+-----------+------+
|~/.zlogin | H | | |
+----------------+-----------+-----------+------+
| | | | |
+----------------+-----------+-----------+------+
| | | | |
+----------------+-----------+-----------+------+
|~/.zlogout | I | | |
+----------------+-----------+-----------+------+
|/etc/zlogout | J | | |
+----------------+-----------+-----------+------+
Note that on Arch, it's /etc/zsh instead of /etc.
By convention, environment variables are set in .zshenv. However, /etc/zsh/zprofile, which is loaded after .zshenv, completely nukes PATH, so no matter what I set in .zshenv for PATH, it'll get wiped by /etc/zsh/zprofile.
Does any zsh user have a workaround for this problem?
EDIT: That's not the question I wanted to ask. I guess I can always source .zshenv in .zprofile, but that's so ugly... Do any other zsh users feel that this should be fixed in Arch's distribution of zsh?
Last edited by darkfeline (2014-04-29 19:21:28)jasonwryan wrote:This has been opened and closed several times on the bugtracker: it's worth reading the various conversations there to get the context and what people do, including me, to work around or within this setup.
Somehow I missed that during my initial skim though the bugtracker, but I found it now.
https://bugs.archlinux.org/task/35966
https://bugs.gentoo.org/show_bug.cgi?id=19924 (Gentoo had an interesting one too).
I understand now the problem is that (ba)sh doesn't have as fine-grained control over startup files as zsh. There also seems to be personal disagreement about where PATH should be set. Thus, setting path gets shoehorned into profile, and when that gets moved over to zprofile, things get ugly.
Maybe you are looking for
-
How can I rename my pics in Bridge CS5?
How can I renams my pics in Bridge CS5?
-
Is there ANY way to fix a corrupt InDesign file??
My computer crashed last night and the InDesign file i was working on seems to have been corrupted. When i try to open the file i get the following message: "Adobe Indesign automatic recovery failed the last time it tried to open the document" when i
-
Component item category "N" - Stock
Hi, We use item category "N" and procurement type Purchase Requisition for Network" for materials components. Sometimes, once we have assigned the component to an activity we realize there is available stock in a storage location, what means we do n
-
how?
-
NOT A VALID SQL STATEMENT EUL-3587
I 've put the following SQL statement in a custom folder but the admin edition does not accept it. Could anyone tell me why?? I kee getting the message from the subject. I am using version; 4.1.48.06.00 on Windows XP Greetz Eelco SELECT DECODE ((TRUN