Solved

java coding

Posted on 2012-03-22
3
301 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
  • 2
3 Comments
 
LVL 47

Expert Comment

by:for_yan
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The viewer will learn how to implement Singleton Design Pattern in Java.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

772 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now