• Post Reply Bookmark Topic Watch Topic
  • New Topic

Command Line Will Not Create Class Files  RSS feed

 
David Dames
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When trying to create the files ClassA.class and ClassB.class I get the following message, but no files are created.

Picked Up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true

This is a work computer, so I'm not sure if some environment setting is causing this.

Command-Line-Not-Creating-Class-Files.png
[Thumbnail for Command-Line-Not-Creating-Class-Files.png]
Screen Shot of Command Line
 
Ron McLeod
Bartender
Posts: 1602
232
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like the environment variable named _JAVA_OPTIONS has been set.  To show it's value, type set _


To temporarily clear the value, type (set _JAVA_OPTIONS=)


To permanently remove it, you will need to remove it using the Environment Variables section in the System control panel (which may or may not be possible depending on how workstations in your corporate network are managed).
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

As a side note, I am assuming that you are running the "ls" command to show us the contents of the directory? And hence, prove to us that the class files are not created?

Unfortunately, you are using a Windows environment, which by default, doesn't have a "ls" command. Hence, the error message shown.

Henry
 
Ron McLeod
Bartender
Posts: 1602
232
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Henry Wong wrote:.. I am assuming that you are running the "ls" command to show us the contents of the directory? And hence, prove to us that the class files are not created?

Also, having the environmental variable set would not have caused the compilation to fail - there were no complaints generated when running javac.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12563
49
Chrome Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Henry Wong wrote:Unfortunately, you are using a Windows environment, which by default, doesn't have a "ls" command. Hence, the error message shown.

"dir" is the command you want on Windows.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!