0
votes
1answer
311 views

Disable Java version out of date prompt

We are running IE9 and Java 1.7 Update 51 (WIN7) in our environment and I am having a heck of a time getting rid of the following popup. Since update 55 was released, users get the following prompt ...
0
votes
1answer
39 views

Java command only working in command line not in sh files

I have recently attempted to install java on ubuntu server 12.04 LTS. I wgetted the tar.gz file and extracted it to /opt/java and then added /opt/java/bin to the path variable. This all works ...
0
votes
2answers
79 views

Windows Command Prompt [closed]

How to load a prewritten line in command prompt? Example: Take the followings as a line: java -jar System.jar Can this command line be written in a .bat file so that by clicking on the .bat ...
0
votes
0answers
42 views

Linux screen/java cli issue

I don't know how to properly label this, so if this is a known problem, I'd be glad to be pointed in that direction. This error could be from java or screen - it probably occurs when I make a screen ...
0
votes
0answers
121 views

Passing Command Line Arguments to EXE

I am using the java jar utility which does not supoort extracting to specific directories via command line argument. Therefore, I need to cd into the folder I want the extracted jar files to go ...
0
votes
1answer
72 views

iterating bash script for cycle in a file

I try to make this very simple bash program that must make the following operations: modify a file java n times: every time I must change a single word in a single line of the file (the line is 11) ...
0
votes
1answer
193 views

writing a batch file: having a batch insert a command into another cmd-based program

i'm trying to have my batch open another cmd based program, wait some time, then input some commands into the cmd-based program, but can't find any documentation on how to do it. this is the batch ...
1
vote
0answers
763 views

Launch Minecraft 1.7.2 From Batch File and change Username

Near the start of the year I made a series of little batch scripts allowing people to run minecraft off of their usbs and not leave anything on the computer (symlink from %appdata%/.minecraft to ...
0
votes
1answer
79 views

How to pipe out the results of “java -version” from DOS cmd to a text file

I am looking for a way to put the results of "java-version" run in cmd (windows) to a text file. I think the problem is the space between java and -version, I have tried with other commands like dir ...
2
votes
0answers
163 views

How can I get millisecond-level accuracy timestamps on screenshots (vlc)?

I'm currently using rt.exec("C:\\VLC\\vlc screen:// --dshow-vdev=screen-capture-recorder --dshow-fps=10 -I dummy --dummy-quiet --rate=1 --video-filter=scene --vout=dummy --scene-format=jpg ...
0
votes
1answer
7k views

How to launch minecraft 1.7.2 from Terminal / Command Line

I've been playing with the new Yggdrasil authserver that mojang created and I have been learning how to get authentication keys etc. Now I want to know how I can launch minecraft from terminal ...
0
votes
1answer
117 views

Mac - Run java program at launch

I want to launch a java program (server program) at computer startup. I can run it from the command line perfectly. I created /Library/Server/startFS.sh. The file is executable by root and contains: ...
0
votes
1answer
153 views

Start jade via batch script as service on windows server 2012 amazon ec2 instance

I would like to start the Jade agent platform with a batch script on an windows server ec2 instance as a service. The reason for this is, that I want to start jade automatically at system startup. ...
0
votes
2answers
169 views

Install Java on Unbuntu server (Parallels Plesk)

I'm trying to install Java on my webserver (Unbuntu - Parallels Plesk). I logged in to the server with PuTTY and tried some commands like: sudo apt-get install openjdk-6-jre or sudo apt-get ...
0
votes
1answer
132 views

Windows 7 - 64bit OS - Opens java.exe always in a separate command prompt

Upgraded my windows 7 from 32 bit to 64 bit. Installed Java 6 (64 bit) and 7 (64 bit) version. Whenever i execute "java" in a command prompt, it opens a new command prompt and execute it. Even if i ...
3
votes
3answers
2k views

Command Line from within Sublime Text

I recently switched from Notepad++ to Sublime Text 2, and it's amazing. There's one thing I'd appreciate and that's compiling my files from the same environment. Sublime text has a console and a ...
0
votes
2answers
2k views

How to print the default java classpath from the command line in windows

I'm doing some trouble-shooting which requires me to know the default classpath under windows. There's java code which will do this (e.g. ...
0
votes
0answers
109 views

Despite being able to run “javac” through the command line, “where javac” doesn't match anything. Why?

Here are both input/outputs: Running javac: D:\>javac Usage: javac <options> <source files> Running where on javac: D:\>where javac INFO: Could not find files for the given ...
0
votes
1answer
180 views

“android” command run only with sudo on Mac OS

When I run android command I take following exception in bash, but it's everything ok with sudo. java.lang.NullPointerException at ...
3
votes
2answers
10k views

Where is java jre path specified in Windows 7?

I have java installed including jre 6 and 7 on Windows 7 64-bit. When I type java -version at the command line I get: C:\>java -version java version "1.6.0_22" Java(TM) SE Runtime Environment ...
-1
votes
1answer
515 views

Unable to open notepad through console in Windows 7

if I type notepad Hi,java I am getting an error as notepad is not recognized as internal or external command What is wrong here?
1
vote
2answers
385 views

Difference between running commands locally vs using SSH to make remote commands

I am trying to SSH into a remote machine, and run a .ksh file on a that machine to run a Java program. If SSH into the machine with a tool like Putty, and run this command: cd ...
0
votes
1answer
257 views

Can't execute java files on command prompts when they work perfectly in Eclipse IDE, what to do?

I run the following code in Eclipse IDE: public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!" ) ; } } And it renders the expected ...
0
votes
1answer
537 views

How can I view all Java Processes running on a windows box using CMD prompt

On CMD prompt, I am trying to list all Java processes with the CMD line arguments. In short, I want to list all Java processes which has jmxremote.port set on cmd prompt. whats the best way of doing ...
1
vote
1answer
77 views

Scala REPL Crash

I've tried Scala on two computers. It works fine on a Windows Professional 64-Bit OS, but the REPL and scalac crash nastily on Windows Professional 32-Bit when running directly from the command line. ...
3
votes
1answer
2k views

How to Kill Java Process in Windows, without killing java.exe through command line?

I need to kill the process activemq-all-5.5.1.jar(....\app-launcher\target\lib\activemq-all-5.5.1.jar). I use taskkill /im java.exe, but it kills all other applications related with java. I need to ...
0
votes
3answers
760 views

Which tools bundled with windows can be used to upload a text file to the web?

I have a text file, and I want to post its contents to a webserver. I would like to do it using applications that come bundled with Windows. I don't mind writing a batch script to do it. But I don't ...
0
votes
1answer
118 views

Java programs wont run in Ubuntu

I have downloaded the java jdk in the terminal window of Ubunutu. I am trying to trace the number of system calls a No-op java program runs for my computer science class. the program looks like so: ...
3
votes
1answer
115 views

Can I use my own Java program as a command in Windows?

I've developed a Java program which does the same task as the ls command in Linux. After developing it, I was thinking about using it as a command in the DOS prompt. Does Windows allow this? If it ...
5
votes
3answers
1k views

java.exe -version and pushd?

I have noticed that when I run the following command Pushd \\RemoteMachine\C$ && java.exe -version I get the java version of the computer I am on. However when I run the pushd command with ...
0
votes
4answers
640 views

how to compile java

If I type in: javac D:\JavaTest\Hello.java Here is what I get: I'm a beginner in Java. I installed the Java SE Development Kit 6u22 from Sun's website. I tried writing this code in Notepad: ...
7
votes
4answers
3k views

in Windows command line: How to know the path of a command?

I have some program in many places (it is the java command).. I am starting this command from CMD. the problem is, I need to know exactly the path of the java command being run.. (If you know unix, I ...
2
votes
2answers
713 views

Disassociate file with cmd.exe

I recently chose cmd.exe as a default program for .jar files with instant regret. How do I associate this back again with javaw.exe in the JRE? The default program check box is disabled, so selecting ...
1
vote
1answer
572 views

windows xp command prompt remote

I was wondering if it was possible to have remote access to a command prompt on a windows xp machine, like using remote desktop services, only with the command prompt. I'm programming a java ...
3
votes
1answer
946 views

How to run Java in Notepad++ command window to accept input

I'm don't know how to use the command line with Notepad++ to accept input and display output.
2
votes
1answer
2k views

How do I pipe Java exceptions into a text file along with normal output?

When I use batchfile.bat >> logfile.txt command in the Windows commandline, it correctly outputs the normal output into the text file, but the Java exceptions get output to the console. Can I make it ...