Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Recently I started making a personal modpack. I ran into a block ID conflict and decided to fix it. I figured out how, and managed to change a .class file to .java so I was able to edit it. Now comes the issue.

When I try converting my files from .java to .class using the command prompt javac command, I get the following errors:

E:\Users\Jeff\Desktop\bettertools_164.s... error: '.' expected /* 3: */ import akc;

E:\Users\Jeff\Desktop\bettertools_164.s... error: ';' expected /* 3: */ import akc;

E:\Users\Jeff\Desktop\bettertools_164.s... error: class, interface, or enum expected /* 4: */ import aqz;

E:\Users\Jeff\Desktop\bettertools_164.s... error: '.' expected /* 5: */ import ard;

E\Users\Jeff\Desktop\bettertools_164.sr... error ';' expected /* 5: */ import ard;

E:\Users\Jeff\Desktop\bettertools_164\b... error: class, interface, or enum expected /* 6: */ import cpw.mods.fml.common.registry.GameRegistr...

I'm not sure if that is enough information to solve my problem, but thanks in advance to anyone able to answer it!

share|improve this question

closed as off-topic by msell, Seth Battin, Anko, Byte56 May 2 '14 at 14:44

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Programming questions that aren't specific to game development are off-topic here, but can be asked on Stack Overflow. A good rule of thumb is to ask yourself "would a professional game developer give me a better/different/more specific answer to this question than other programmers?"" – Byte56
If this question can be reworded to fit the rules in the help center, please edit the question.

    
Why are you changing .java into .class? –  Jordan Apr 28 '14 at 23:46
    
In order for the mod to work correctly it must be in the .class form. –  Jeff Apr 29 '14 at 1:42
    
You can get the .class in the bin folder of Eclipse. –  Jordan Apr 29 '14 at 1:57
    
I haven't tried Eclipse yet, just the command prompt. I'll see how this goes tomorrow. –  Jeff Apr 29 '14 at 2:01
    
@Jordan I haven't been able to figure out Eclipse (really not a java programmer :( ), but I have decided that the mod is no longer necessary, and from what I've seen online, you solution would most likely work, so if you post this as an answer I can select it as best answer. –  Jeff May 2 '14 at 1:39

1 Answer 1

up vote 0 down vote accepted

To get the .class files of a java project look in your bin folder.

This should work for Eclipse and Netbeans.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.