Compiling a .java file to .class with maven [REWARD for HELP]

Status
This thread has been locked.

HM04

Computer Science and Finance Student
Premium
Feedback score
3
Posts
544
Reactions
269
Resources
0
Hey guys. I have a .java file that I need compiled to a .class file. I would use javac, but their are loads of dependencies that I need so I resorted to using maven, which I hardly understand. I have the .java and the pom.xml but dont really know where to go next. I've been told its possible, but havent found a solution. Willing to give a reward to the person who can help me out.
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

FormallyMyles

Premium
Feedback score
0
Posts
5
Reactions
1
Resources
0
Ensure you have maven installed, put the java file in src/main/java/ (as long as your pom.xml is setup right) and then it should be as simple as mvn package to create the classes?

Otherwise you're probably gonna need to provide more info. It might be easier just to whip up something like Eclipse and add all the jars to the classpath to compile (assuming you have them all downloaded).
 
Status
This thread has been locked.
Top