Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-29-2008, 03:04 AM
Member
 
Join Date: Mar 2008
Posts: 1
Hellz is on a distinguished road
Little Help Plz
Can anyone tell me how to compile a .java file to a .class file with errors.. i have some problems. I know how to compile a .java file to a .class file but i need to compile one more .java to .class but i cant because i get some errors. I know the code is right but i don't know why i get the error. So i kindly ask... Does anyone know how to compile the .java to .class with the errors. Or some kind of program to do it or something. Your help is very appreciated. Thank you.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-29-2008, 06:01 AM
Member
 
Join Date: Mar 2008
Posts: 2
Vicious is on a distinguished road
you can put all of your javaFiles(*.java) in one folder. we assume that whose name is aaa.then you can get all corresponding classFiles useing command: javac aaa\*.java.
Sorry,my english is poor.I give this example:
C:> dir
aaa\
C:> dir aaa
1.java 2.java 3.java 4.java ....
C:> javac aaa\*.java
C:> dir aaa
1.class 2.class 3.class 4.class ...
1.java 2.java 3.java 4.java ...
I hope you can solve your problem. ^-^
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 03-31-2008, 12:40 PM
DonCash's Avatar
Moderator
 
Join Date: Aug 2007
Location: London, UK
Posts: 239
DonCash will become famous soon enoughDonCash will become famous soon enough
I'm not sure if you can compile with errors. Is it a large program? If not, maybe you could paste the code here and we could take a look to see if we can fix the errors for you.
__________________
Did this post help you? Please
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
me!

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 03-31-2008, 01:42 PM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,402
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Quote:
Originally Posted by DonCash View Post
I'm not sure if you can compile with errors. Is it a large program? If not, maybe you could paste the code here and we could take a look to see if we can fix the errors for you.
Yep, and who need a code with errors.

If you have any question let me know others here. Lots of people are ready here.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 04-01-2008, 04:33 AM
Member
 
Join Date: Feb 2008
Location: Oregon, USA
Posts: 24
Bluefox815 is on a distinguished road
Send a message via MSN to Bluefox815
You can't compile with errors because when there's an error, the compiler couldn't possibly know what to convert it to, it's like trying to compile this:
Code:
public void getInt() { return number; }
you can't return an int when the return type is void, so an error is generated because there is nothing the compiler can do. I'd suggest fixing the errors because, no offense, the code is obviously wrong, unless you are using a deprecated API. Otherwise, like DonCash said, you can post your code and we'll fix it if we can.

Last edited by Bluefox815 : 04-01-2008 at 04:37 AM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +3. The time now is 02:00 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org