Sublime Forum

Java with Sublime

#1

I am not sure if this is in the right forums, I am sorry if it is not.

I am planning to code a game in Java on sublime text 3. I have used eclipseIDE. I am trying to switch to sublime to make it easier to access php projects too.

Also is there a way for the whole .class to be placed in a bin folder?

Finally when I compile everything (including the dependency) and run it would it display the gui? And would Java know how to compile the multiple classes stored?

In a nutshell, I know how to find to import the compiler into sublime. I just need to add the dependency to be compiled. Along with placing all the compiled stuff in a bin file.

Thanks and sorry for the English I’m on my iPhone.

0 Likes

#2

I haven’t done much Java stuff in sublime as of yet (unless you count helping out @metroidfan a bit in this thread which you might also find useful) but Sublime’s Java support is primarily aimed at editing the code and not doing more IDE type stuff with it.

In particular, things like compiling your Java files and managing dependencies are outside of it’s scope.

One tool for doing this is Apache Ant; you create a build.xml file that describes your dependencies and how you want things built, and it takes care of the heavy lifting for you.

There is no built in support for Ant as a build system in Sublime 3, but there seems to be a plugin for it though.

0 Likes

#3

There is a plugin, Javatar, which claims the following:

Javatar is a plugin for Sublime Text 3 and for Java development. The inspirations behind Javatar is Eclipse, the open-source Java IDE.

I haven’t used it myself, though.

2 Likes

#4

@QED1224 @OdatNurd okay thanks!

0 Likes