Results 1 to 9 of 9
Thread: Compile single java file
- 12-14-2012, 12:05 PM #1
Banned
- Join Date
- Dec 2012
- Posts
- 8
- Rep Power
- 0
Compile single java file
hi,
i need to know how to compile this file to .class to use it at a .jar file
it has import at the file head so its giving error is there any way to compile it without the other imported files ?
[Java] d.java - Pastebin.com
- 12-14-2012, 01:51 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,460
- Rep Power
- 16
Re: Compile single java file
What error are you getting?
Few people will go to a download link...Please do not ask for code as refusal often offends.
- 12-14-2012, 02:48 PM #3
Re: Compile single java file
Moved from Advanced Java. Please limit beginner questions to this section.
All dependencies need to be available on both the compile-time and runtime classpath. You accomplish this with the -cp (or -classpath) flag to the javac/java executables.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 12-14-2012, 07:10 PM #4
Banned
- Join Date
- Dec 2012
- Posts
- 8
- Rep Power
- 0
- 12-14-2012, 09:24 PM #5
- 12-14-2012, 11:41 PM #6
Banned
- Join Date
- Dec 2012
- Posts
- 8
- Rep Power
- 0
Re: Compile single java file
hmmmmm, ok.. so it won't compiled :D
-
Re: Compile single java file
Agree, that even if you could "ignore the errors" and compile anyway, you wouldn't want to do that, since there's no way the program could run. A bigger problem is that you've got 59 errors to start with which suggests that you're going about programming all wrong. If you aren't or can't use an IDE, you should compile your code often, and you should not add new code until all compilation errors are fixed. You may need to start over with your program.
If you still need our help, consider posting code and errors.
- 12-15-2012, 06:39 AM #8
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,605
- Rep Power
- 5
Re: Compile single java file
Given the code is obfuscated, and given your other thread (eg J2me help ), I'd guess this is stolen code, de-compiled without permission, quite possibly violating a license agreement. You have yet to convince me otherwise, so why not get permission? Why not contact the author? Why not do this the legal way?
- 12-15-2012, 07:04 AM #9
Similar Threads
-
how to use -d to compile java code to separate class and java file
By Tarasj in forum New To JavaReplies: 5Last Post: 03-26-2012, 07:11 PM -
I try to compile my source code, However it says javac: file not found: Hello.java
By waao in forum New To JavaReplies: 7Last Post: 08-29-2011, 06:35 PM -
How to Run four source file in a single package
By krishanu in forum New To JavaReplies: 0Last Post: 05-25-2011, 01:22 PM -
start/compile java from .bat batch file
By emosms in forum New To JavaReplies: 2Last Post: 03-23-2011, 04:34 PM -
Help with Java Compile File
By baltimore in forum New To JavaReplies: 1Last Post: 08-06-2007, 07:48 AM


LinkBack URL
About LinkBacks


Bookmarks