Author Topic: Java Question  (Read 202 times)

Offline Alinchicken6

  • Minecraft junkie
  • *****
  • Posts: 1580
  • Scaredy Chicken
Java Question
« on: March 16, 2012, 06:26:40 PM »
Does anyone know how to add a class into javas class path. I have some problems with my minecraft and from what I know about java, the problem is that the Minecraft.class in bin/minecraft.jar/net/client is not in javas classs path.

Error code in my Console
Code: [Select]
3/16/12 7:17:07.687 PM [0x0-0x8b08b].com.Mojang Specifications.Minecraft.Minecraft: Caused by: java.lang.ClassNotFoundException: net.minecraft.client.Minecraft

EDIT: At first the problem was NoClassDefFoundError and it changed to the current problem when I replaced the Minecraft.class with one from 1.1
« Last Edit: March 16, 2012, 06:59:53 PM by Alinchicken6 »

Offline Zetaeta

  • Minecraft junkie
  • *****
  • Posts: 1870
  • Terra Mysticat
Re: Java Question
« Reply #1 on: March 16, 2012, 07:12:29 PM »
Any adding to classpath should be done in the Minecraft launcher. You can specify classpath with java -cp [list of jars].[/list]

Offline Alinchicken6

  • Minecraft junkie
  • *****
  • Posts: 1580
  • Scaredy Chicken
Re: Java Question
« Reply #2 on: March 16, 2012, 07:13:36 PM »
Any adding to classpath should be done in the Minecraft launcher. You can specify classpath with java -cp [list of jars].[/list]
Where can I find the minecraft launcher? Is it the same thing i open to run minecraft?

Offline Alinchicken6

  • Minecraft junkie
  • *****
  • Posts: 1580
  • Scaredy Chicken
Re: Java Question
« Reply #3 on: March 16, 2012, 08:00:48 PM »
MadMan helped me fix it thx anyway.

 

anything
anything
anything