Solved

java coding

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

828 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