Solved

java coding

Posted on 2012-03-22
3
310 Views
Last Modified: 2012-03-22
so I'm trying to learn how to code with Java, and I'm making some progress, but I have something happening that is confusing me
twice now, with my tiny little "programs", I run javac at the command prompt on the file.java file I am trying to compile, and javac doesn't report any errors, but it doesn't create a file.class file like all the other "programs" I have created so far.
prior to this, i have pretty much had typos, which i track down with the help of the error messages that javac provides.
any ideas why javac would run without errors but not make a .class file?
0
Comment
Question by:JeffBeall
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 47

Expert Comment

by:for_yan
ID: 37754380
Post your commands

javac would always report errors unless it creates the .class file in some other folder where you are not lookig for it?

Post exactly your commands
0
 
LVL 47

Accepted Solution

by:
for_yan earned 500 total points
ID: 37754405
this guy repirted the case when javac failes silently when some third party class is missing, but I think he still didn't notice something, or did something incorrectly:
http://stackoverflow.com/questions/8295538/javac-not-producing-output

I never saw javac silently failing

yiou cna still try

javac -verbose MyFile.java

and post your operations
0
 
LVL 1

Author Closing Comment

by:JeffBeall
ID: 37754427
When i read your comment i looked closer and at

class name {

was different than when i ran

javac name2

I changed name after class to name2, and sure enough, name2.class showed up.
I had been changing name.class, expecting it to be name2.class.
Thank you for the help.
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question