Solved

java coding

Posted on 2012-03-22
3
302 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article will show, step by step, how to integrate R code into a R Sweave document
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

911 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

18 Experts available now in Live!

Get 1:1 Help Now