Solved Creating Plugin Without An IDE

Discussion in 'Plugin Development' started by RedXVIII, Mar 23, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Malikk

    That was a joke...
     
  2. Chill doode - you just sound like a child so i talk to you as a child - kapeche?
     
  3. Offline

    Burnett1

    May i ask why the hell you would not want to use an IDE?
     
  4. Offline

    RedXVIII

    I sound like a child goodstuff20, all I've gotten was crap from you guys! You guys should listen to yourselves!
     
  5. Offline

    GodzOfMadness

    RedXVIII You should listen to yourself, you are calling us idiots because we try to help you. If you don't want our help then why are you on the forums making pointless arguments? We gave you all you needed to make plugins without an IDE
     
  6. Offline

    Comphenix

    Here's a simple build script written in batch. Paste it into notepad and save the file as Compile.bat in your project directory (select All files in Save as type):
    Code:
    :: Note that this will only build a single java file
    javac.exe -cp lib\bukkit-1.5.1-R0.1.jar -d bin\ src\com\comphenix\example\ExampleMod.java
    copy src\plugin.yml bin\plugin.yml
     
    :: Make a JAR file
    jar -cvf ExamplePlugin.jar -C bin .
    pause
    Remember to update your path variable for javac to work! Next, create the following sub-directories in the project directory:
    • bin
    • src
    • lib
    Place Bukkit into the lib-directory (rename the file to bukkit-1.5.1-R0.1.jar). Then place plugin.yml (contains the name and version of your plugin, along with the startup class) into the src folder:
    Code:
    name: ExamplePlugin
    version: 1.0.0
    description: A simple test plugin.
    author: Comphenix
    website: http://www.comphenix.net/ExamplePlugin
     
    main: com.comphenix.example.ExampleMod
    database: false
    Finally, create the directories com/comphenix/example (which you should rename to your reverse domain name later) and place ExamplePlugin.java into example:
    Code:
    package com.comphenix.example;
     
    import org.bukkit.plugin.java.JavaPlugin;
    import org.bukkit.ChatColor;
     
    public class ExampleMod extends JavaPlugin {
        @Override
        public void onEnable() {
            System.out.println(ChatColor.RED + "Hello world!");
        }
    }
    
    OR you could follow this simple tutorial and be up and running in no time.
     
    Ne0nx3r0 likes this.
  7. Chillax man - you are as angry as your avatar - I thought you could programm - just do it as you make your game (almost)
     
  8. Offline

    SugarCraft

  9. Offline

    Ne0nx3r0

    Irony.

    Is there a place this thread can be nominated for most hilarious of the year?

    In any case, these guides should help you:
    http://www.wikihow.com/Write-Your-First-Program-in-Java
    http://stackoverflow.com/questions/5112607/how-to-include-libraries-in-java-without-using-an-ide

    Presuming you know how to code in Java those two things should be enough.

    Also, can we get a citation up in this mess?

    http://www.eclipse.org/legal/eplfaq.php#COMPILEWOMOD
    What's that? Their "Eclipse Public License" is publicly available?
    http://www.eclipse.org/legal/epl-v10.html
    RedXVIII Just use an IDE would you? If it bothers you that much email the makers of your IDE and ask them.
     
  10. Offline

    RedXVIII

    Look I've already looked how to add a library, but even when i add the plugin.yml, it says its not there, when I clearly did "javac -classpath plugin.yml;craftbukkit.jar Main.class". Btw, thx for telling me the terms Ne0nx3r0. Now can someon help me, or am I going to just get criticized again?
     
  11. Offline

    SugarCraft

    Yep.
     
  12. Offline

    GodzOfMadness

    RedXVIII You won't get criticized if you don't call people idiots for trying to help you
     
    Deleted user and SugarCraft like this.
  13. Offline

    SugarCraft

  14. Did ya add the API?
     
  15. Offline

    RedXVIII

    GodzOfMadness
    Then how come i got this? Don't you think that's gotta make someone mad, if they where wrong for something?

     
  16. Offline

    stuntguy3000

    This thread keeps getting better and better.
     
  17. Offline

    GodzOfMadness

    RedXVIII I'm not saying that it's not wrong but you made a false statement as comeback when people were clearly saying that it doesn't involve paying
     
  18. Offline

    Ne0nx3r0

    Learn to use Google. That's all basically anyone here who helps you is going to do because 99.9% of us are not stubborn enough to skip an IDE all because of some irrational fear of licensing a product that isn't even made yet.


    Here's how I found the answer to your current situation:
    https://www.google.com/search?q=javac resource file

    http://stackoverflow.com/a/804157/380189

    You're tying one hand behind your back here. Why don't you just use an IDE? I clearly explained why none of this hardship is necessary.
     
  19. Offline

    stuntguy3000

    IDEs were made to make this stuff a hell of a lot easier than it has to be, obviously you are so stuck up about your java knowledge you think your pro and don't need one.
     
  20. I hope everything is cleared now :)

    I guess not

    I was commenting to my comment this time

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Dec 15, 2018
  21. Offline

    RedXVIII

    Ne0nx3r0
    I know know how to use google, I've already tried looking for an answer, most of them wasn't an answer I was looking for. I'm not pro, I'm trying to get better at it, because I love to program. Honestly whats wrong with not using an IDE.

    Kidding me, people keep criticizing me, it's not guna end... someone should just delete this thread, idk why I even bothered to ask on this forum.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 1, 2018
  22. Offline

    GodzOfMadness

    RedXVIII First (before a staff member reads your post and locks the thread) You have been talking back at us for no reason, you have called us stupid for helping you, and all we have been trying to do now is help you. The reason why you think it is criticism is because they read this post and don't think it's right to say nothing about what you have said to us
     
  23. Offline

    Ne0nx3r0

    There's nothing wrong with not using one, but there's a lot right with using one. It's like asking why you would use a car when you can just walk everywhere.

    And IDE will:
    • highlight errors
    • provide suggestions such as imports and casting
    • allow you to refactor code in a simpler way
    • let you focus on coding rather than command line compilation parameters
    • color code making it easier to read
    • provide "intellisense" methods and inline object information, and allow you to for example ctrl+click on an object/method to read it's source file
    • provide git/subversion/etc. integration for versioning and highlight changes since your last version
    That's not nearly a complete list, and off the top of my head.

    Notably, people are getting on you because of the way you are asking, not what you are asking.
     
    GodzOfMadness likes this.
  24. Thx for clearing it up (even though it was a bit funny)
     
  25. Offline

    stuntguy3000

    Thread of the month.
     
    goodstuff20 likes this.
  26. Enjoy it as long as you can :)
     
  27. Offline

    RedXVIII

    GodzOfMadness I was talking back at you, because you had to write a smart Alec remark, that you can just write it on a notepad, alright. If you didn't mean anything then i'm sorry.
     
  28. Offline

    Comphenix

    I like how you've completely skipped my comment, and gone straight to doing it yourself wrongly. I already told you how to include plugin.yml into the resulting JAR.

    Not understanding my comment is a hint for you to use an IDE instead. If you simply skipped it, well ... I guess that explains why you're unable to look things up on Google.
     
  29. Offline

    GodzOfMadness

    RedXVIII The reason why it sounded like me being a smart ass is because your question evolved on what was said above you.
     
  30. Offline

    RedXVIII

    Look I didn't know exactly until someone had shown proof of it, people can be wrong sometimes.
     
Thread Status:
Not open for further replies.

Share This Page