Questions tagged [system-variable]

146 questions
1
vote
1 answer

java4 installation detects java8

I'm preparing a VM with Windows XP, Java 4 and Java 8 for university projects purposes. Before installing Java4 I first installed 7 and 8 for gradle, intellij and some other projects. After all the installation stuff, i set my JAVA_HOME variable…
RecuencoJones
  • 2,747
  • 3
  • 22
  • 21
1
vote
3 answers

'Application not found' when launching JAR file through context menu

I'm trying to run a .jar file by right-clicking on a folder and selecting an item in the context menu. It works when the (Default) value in HKEY_CLASSES_ROOT\Directory\shell\MyJar\command is: "C:\Program Files (x86)\Java\jdk1.8.0_40\bin\java.exe"…
H.v.M.
  • 1,348
  • 3
  • 16
  • 42
1
vote
1 answer

Can't change system variable "Path" for netbeans

I downloaded Netbeans because I wanted to start learning C++. I downloaded the compiler, debugger, and make utility from cygwin. In order to complete the process of setting up my IDE I need to modify the system variable Path to reflect my new cygwin…
FelixTheNub
  • 181
  • 2
  • 10
1
vote
1 answer

Append to system variable path from batch file

I want to add a few lines to Windows system variable path. The batch file I have now appends these lines to user variable, not system variable. How do I need to change it in order to append to system variable? Here's my batch command: SETX path…
Forza
  • 1,619
  • 3
  • 28
  • 49
1
vote
2 answers

Display realtime server data on webpage

I would need to display realtime server informations on a webpage such as cpu load and such things. the more i can display the better it is. There is no restriction in the programming Language, but if it could be javascript it would be better. All…
sharkyenergy
  • 3,842
  • 10
  • 46
  • 97
1
vote
3 answers

Yii new project cmd

I have been using xampp server. I'm trying to make a new project. I have been giving a command, C:\xampp\htdocs\yii\framework\yiic It says, php.exe is not recognized as an internal or external command, operable program or batch file. I have also…
user983983
  • 158
  • 1
  • 2
  • 11
1
vote
1 answer

maven jetty plugin how to pass system variable

How can I pass a system variable to my application using the jetty:run command? Is it possible to pass it like: mvn jetty:run -Dmy.variable=something And use it in my code: String myVariable = System.getProperty("my.variable");
rascio
  • 8,968
  • 19
  • 68
  • 108
1
vote
2 answers

Does Javascript / jQuery have system vars?

I noticed strange issue. Look at this jQuery: $(function(){ status = 1; status1 = 2; $('body').append(status+' - '+status1); }); Fiddle As you can see output is: - 2 So status is system var for JavaScript or jQuery? And is there any…
Narek
  • 3,813
  • 4
  • 42
  • 58
1
vote
1 answer

Why does default_week_format variable apply to WEEK but not to YEARWEEK

I posted a question earlier which was answered properly and led me to find that my YEARWEEK() function was using the default mode of zero and was giving me results I did not want. I read the manual for YEARWEEK, which referenced me to WEEK…
Geoff
  • 256
  • 2
  • 5
  • 20
1
vote
3 answers

What windows environment variables can you rely on being there?

I am writing an application which requires the use of storing some temporary files (I am finding the temporary location through environment variables). I understand that environment variables are variable which means they may or may not be there…
jamie
  • 15
  • 3
1
vote
3 answers

Unexpected maven directories

I've just downloaded Maven 3.0.4. My variables are: M2_HOME C:\Program Files (x86)\apache-maven-3.0.4 JAVA_HOME C:\Program Files\Java\jdk1.6.0_35 and my PATH C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files…
eskalera
  • 1,072
  • 2
  • 21
  • 36
1
vote
2 answers

Powershell invoke-command and system variables

I'm working on automating patches for a vendor app. I wanted to use powershell to iterate over a list of servers and use remoting to install on each box. However, one aspect is giving me a big headache. I have to call a cmd script provided by the…
JDH
  • 2,618
  • 5
  • 38
  • 48
1
vote
2 answers

How to make newest version of Python the default or first in path

I have installed a new version of Python, so I want to make sure when Python is invoked that version is first in my path. So, now on my 'C' drive I have "Python27" and "Python32" (old and new version, respectively). When I type "python" in the…
Roman
  • 124,451
  • 167
  • 349
  • 456
0
votes
3 answers

How to access system variable from inside Java program?

echo $MY_FILE prints "/path/to/some/file" System.out.println(System.getenv("MY_FILE")); prints null Additionally, when i print JAVA_HOME (from Eclipse), i too get null. From the shell it echoes /Library/Java/Home Not sure whether this is relevant,…
James Raitsev
  • 92,517
  • 154
  • 335
  • 470
0
votes
1 answer

Is there an API to get the original variable values defined in OS

In the Windows System Properties | Environment Variables, there is a variable "AppStatus=status1". There is an exe named MyApp.exe. In the implementation it changes the variable with the code. int ret = putenv("AppStatus=status2"); // Change the…
Jeffrey
  • 4,436
  • 9
  • 38
  • 54