Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #2237 > unrolled thread
| Started by | v.vadim.se@gmail.com |
|---|---|
| First post | 2012-11-09 00:55 -0800 |
| Last post | 2012-11-10 11:21 -0800 |
| Articles | 12 — 5 participants |
Back to article view | Back to comp.lang.java.help
<identifier> expected v.vadim.se@gmail.com - 2012-11-09 00:55 -0800
Re: <identifier> expected Eric Sosman <esosman@comcast-dot-net.invalid> - 2012-11-09 08:28 -0500
Re: <identifier> expected Вадим Воеводин <v.vadim.se@gmail.com> - 2012-11-09 05:42 -0800
Re: <identifier> expected Eric Sosman <esosman@comcast-dot-net.invalid> - 2012-11-09 09:00 -0500
Re: <identifier> expected Вадим Воеводин <v.vadim.se@gmail.com> - 2012-11-09 06:11 -0800
Re: <identifier> expected Eric Sosman <esosman@comcast-dot-net.invalid> - 2012-11-09 09:18 -0500
Re: <identifier> expected Вадим Воеводин <v.vadim.se@gmail.com> - 2012-11-09 07:10 -0800
Re: <identifier> expected Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-11-09 10:15 -0500
Re: <identifier> expected Вадим Воеводин <v.vadim.se@gmail.com> - 2012-11-09 07:37 -0800
Re: <identifier> expected Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-11-09 10:45 -0500
Re: <identifier> expected Вадим Воеводин <v.vadim.se@gmail.com> - 2012-11-09 07:54 -0800
Re: <identifier> expected Roedy Green <see_website@mindprod.com.invalid> - 2012-11-10 11:21 -0800
| From | v.vadim.se@gmail.com |
|---|---|
| Date | 2012-11-09 00:55 -0800 |
| Subject | <identifier> expected |
| Message-ID | <3381993a-a524-4302-b0f2-e1e3ffb1a6b6@googlegroups.com> |
I got error in the following piece of code:
public static void SetupFood(int var0)
{
FruitTreeSapling1 = (new ItemFruitTreeSapling(TFC_Settings.getIntFor(config, "item", "FruitSapling1", var0), "/bioxx/Vegetation.png", 0)).b("FruitSapling1").b(0, 7);
++var0;
FruitTreeSapling2 = (new ItemFruitTreeSapling(TFC_Settings.getIntFor(config, "item", "FruitSapling2", var0), "/bioxx/Vegetation.png", 8)).b("FruitSapling2").b(8, 7);
++var0;
RedApple = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "Fruit.Red Apple", var0), 15, 0.1F, false, "/bioxx/FoodSprites.png", 2)).b(2, 0).b("Fruit.Red Apple");
++var0;
Banana = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "Fruit.Banana", var0), 10, 0.1F, false, "/bioxx/FoodSprites.png", 3)).b(0, 0).b("Fruit.Banana");
++var0;
Orange = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "Fruit.Orange", var0), 10, 0.1F, false, "/bioxx/FoodSprites.png", 4)).b(1, 0).b("Fruit.Orange");
++var0;
GreenApple = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "Fruit.Green Apple", var0), 15, 0.1F, false, "/bioxx/FoodSprites.png", 5)).b(3, 0).b("Fruit.Green Apple");
++var0;
Lemon = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "Fruit.Lemon", var0), 10, 0.03F, false, "/bioxx/FoodSprites.png", 6)).b(4, 0).b("Fruit.Lemon");
++var0;
Olive = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "Fruit.Olive", var0), 10, 0.05F, false, "/bioxx/FoodSprites.png", 7)).b(8, 0).b("Fruit.Olive");
++var0;
Cherry = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "Fruit.Cherry", var0), 10, 0.03F, false, "/bioxx/FoodSprites.png", 8)).b(5, 0).b("Fruit.Cherry");
++var0;
Peach = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "Fruit.Peach", var0), 12, 0.1F, false, "/bioxx/FoodSprites.png", 9)).b(6, 0).b("Fruit.Peach");
++var0;
Plum = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "Fruit.Plum", var0), 10, 0.1F, false, "/bioxx/FoodSprites.png", 10)).b(7, 0).b("Fruit.Plum");
++var0;
EggCooked = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "Meat.EggCooked", var0), 25, 0.4F, false, "/bioxx/FoodSprites.png", 11)).b(0, 7).b("Meat.EggCooked");
++var0;
WheatGrain = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "WheatGrain", var0++), 1, 0.4F, false, "/bioxx/FoodSprites.png", 12)).b(1, 4).b("WheatGrain");
BarleyGrain = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "BarleyGrain", var0++), 1, 0.4F, false, "/bioxx/FoodSprites.png", 14)).b(0, 4).b("BarleyGrain");
OatGrain = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "OatGrain", var0++), 1, 0.4F, false, "/bioxx/FoodSprites.png", 16)).b(3, 4).b("OatGrain");
RyeGrain = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "RyeGrain", var0++), 1, 0.4F, false, "/bioxx/FoodSprites.png", 18)).b(2, 4).b("RyeGrain");
RiceGrain = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "RiceGrain", var0++), 1, 0.4F, false, "/bioxx/FoodSprites.png", 20)).b(4, 4).b("RiceGrain");
MaizeEar = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "MaizeEar", var0++), 10, 0.4F, false, "/bioxx/FoodSprites.png", 22)).b(5, 4).b("MaizeEar");
Tomato = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "Tomato", var0++), 15, 0.4F, false, "/bioxx/FoodSprites.png", 24)).b(15, 4).b("Tomato");
Potato = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "Potato", var0++), 22, 0.4F, false, "/bioxx/FoodSprites.png", 25)).b(6, 4).b("Potato");
Onion = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "Onion", var0++), 10, 0.4F, false, "/bioxx/FoodSprites.png", 27)).b(7, 4).b("Onion");
Cabbage = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "Cabbage", var0++), 20, 0.4F, false, "/bioxx/FoodSprites.png", 28)).b(8, 4).b("Cabbage");
Garlic = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "Garlic", var0++), 10, 0.4F, false, "/bioxx/FoodSprites.png", 29)).b(11, 4).b("Garlic");
Carrot = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "Carrot", var0++), 5, 0.4F, false, "/bioxx/FoodSprites.png", 30)).b(12, 4).b("Carrot");
Sugarcane = (new ItemTerra(TFC_Settings.getIntFor(config, "item", "Sugarcane", var0++), "/bioxx/FoodSprites.png")).b(13, 4).b("Sugarcane");
Hemp = (new ItemTerra(TFC_Settings.getIntFor(config, "item", "Hemp", var0++), "/bioxx/FoodSprites.png")).b(15, 2).b("Hemp");
Soybean = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "Soybeans", var0++), 10, 0.4F, false, "/bioxx/FoodSprites.png", 31)).b(8, 5).b("Soybeans");
Greenbeans = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "Greenbeans", var0++), 10, 0.4F, false, "/bioxx/FoodSprites.png", 32)).b(10, 5).b("Greenbeans");
GreenBellPepper = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "GreenBellPepper", var0++), 10, 0.4F, false, "/bioxx/FoodSprites.png", 34)).b(5, 5).b("GreenBellPepper");
YellowBellPepper = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "YellowBellPepper", var0++), 10, 0.4F, false, "/bioxx/FoodSprites.png", 35)).b(6, 5).b("YellowBellPepper");
RedBellPepper = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "RedBellPepper", var0++), 10, 0.4F, false, "/bioxx/FoodSprites.png", 36)).b(7, 5).b("RedBellPepper");
Squash = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "Squash", var0++), 12, 0.4F, false, "/bioxx/FoodSprites.png", 37)).b(9, 5).b("Squash");
WheatWhole = (new ItemTerra(TFC_Settings.getIntFor(config, "item", "WheatWhole", var0++), "/bioxx/FoodSprites.png")).b("WheatWhole").b(1, 5);
BarleyWhole = (new ItemTerra(TFC_Settings.getIntFor(config, "item", "BarleyWhole", var0++), "/bioxx/FoodSprites.png")).b("BarleyWhole").b(0, 5);
OatWhole = (new ItemTerra(TFC_Settings.getIntFor(config, "item", "OatWhole", var0++), "/bioxx/FoodSprites.png")).b("OatWhole").b(3, 5);
RyeWhole = (new ItemTerra(TFC_Settings.getIntFor(config, "item", "RyeWhole", var0++), "/bioxx/FoodSprites.png")).b("RyeWhole").b(2, 5);
RiceWhole = (new ItemTerra(TFC_Settings.getIntFor(config, "item", "RiceWhole", var0++), "/bioxx/FoodSprites.png")).b("RiceWhole").b(4, 5);
MealGeneric = (new ItemMeal(TFC_Settings.getIntFor(config, "item", "MealGeneric", var0++), "/bioxx/FoodSprites.png")).b("MealGeneric").b(15, 1);
MealMoveSpeed = (new ItemMeal(TFC_Settings.getIntFor(config, "item", "MealMoveSpeed", var0++), "/bioxx/FoodSprites.png")).setPotionEffect(new MobEffect(MobEffectList.FASTER_MOVEMENT.id, 8000, 4)).b("MealGeneric").b(14, 1);
MealDigSpeed = (new ItemMeal(TFC_Settings.getIntFor(config, "item", "MealDigSpeed", var0++), "/bioxx/FoodSprites.png")).setPotionEffect(new MobEffect(MobEffectList.FASTER_DIG.id, 8000, 4)).b("MealGeneric").b(13, 1);
MealDamageBoost = (new ItemMeal(TFC_Settings.getIntFor(config, "item", "MealDamageBoost", var0++), "/bioxx/FoodSprites.png")).setPotionEffect(new MobEffect(MobEffectList.INCREASE_DAMAGE.id, 4000, 4)).b("MealGeneric").b(12, 1);
MealJump = (new ItemMeal(TFC_Settings.getIntFor(config, "item", "MealJump", var0++), "/bioxx/FoodSprites.png")).setPotionEffect(new MobEffect(MobEffectList.JUMP.id, 8000, 4)).b("MealGeneric").b(11, 1);
MealDamageResist = (new ItemMeal(TFC_Settings.getIntFor(config, "item", "MealDamageResist", var0++), "/bioxx/FoodSprites.png")).setPotionEffect(new MobEffect(MobEffectList.RESISTANCE.id, 8000, 4)).b("MealGeneric").b(10, 1);
MealFireResist = (new ItemMeal(TFC_Settings.getIntFor(config, "item", "MealFireResist", var0++), "/bioxx/FoodSprites.png")).setPotionEffect(new MobEffect(MobEffectList.FIRE_RESISTANCE.id, 8000, 4)).b("MealGeneric").b(9, 1);
MealWaterBreathing = (new ItemMeal(TFC_Settings.getIntFor(config, "item", "MealWaterBreathing", var0++), "/bioxx/FoodSprites.png")).setPotionEffect(new MobEffect(MobEffectList.WATER_BREATHING.id, 8000, 4)).b("MealGeneric").b(8, 1);
MealNightVision = (new ItemMeal(TFC_Settings.getIntFor(config, "item", "MealNightVision", var0++), "/bioxx/FoodSprites.png")).setPotionEffect(new MobEffect(MobEffectList.NIGHT_VISION.id, 4000, 4)).b("MealGeneric").b(7, 1);
WheatGround = (new ItemTerra(TFC_Settings.getIntFor(config, "item", "WheatGround", var0++), "/bioxx/FoodSprites.png")).b("WheatGround").b(10, 0);
BarleyGround = (new ItemTerra(TFC_Settings.getIntFor(config, "item", "BarleyGround", var0++), "/bioxx/FoodSprites.png")).b("BarleyGround").b(11, 0);
OatGround = (new ItemTerra(TFC_Settings.getIntFor(config, "item", "OatGround", var0++), "/bioxx/FoodSprites.png")).b("OatGround").b(12, 0);
RyeGround = (new ItemTerra(TFC_Settings.getIntFor(config, "item", "RyeGround", var0++), "/bioxx/FoodSprites.png")).b("RyeGround").b(13, 0);
RiceGround = (new ItemTerra(TFC_Settings.getIntFor(config, "item", "RiceGround", var0++), "/bioxx/FoodSprites.png")).b("RiceGround").b(14, 0);
CornmealGround = (new ItemTerra(TFC_Settings.getIntFor(config, "item", "CornmealGround", var0++), "/bioxx/FoodSprites.png")).b("CornmealGround").b(15, 0);
WheatDough = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "WheatDough", var0++), 1, 0.0F, false, "/bioxx/FoodSprites.png", 0)).b("WheatDough").b(15, 3);
BarleyDough = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "BarleyDough", var0++), 1, 0.0F, false, "/bioxx/FoodSprites.png", 0)).b("BarleyDough").b(15, 3);
OatDough = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "OatDough", var0++), 1, 0.0F, false, "/bioxx/FoodSprites.png", 0)).b("OatDough").b(15, 3);
RyeDough = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "RyeDough", var0++), 1, 0.0F, false, "/bioxx/FoodSprites.png", 0)).b("RyeDough").b(15, 3);
RiceDough = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "RiceDough", var0++), 1, 0.0F, false, "/bioxx/FoodSprites.png", 0)).b("RiceDough").b(15, 3);
CornmealDough = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "CornmealDough", var0++), 1, 0.0F, false, "/bioxx/FoodSprites.png", 0)).b("CornmealDough").b(15, 3);
BarleyBread = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "BarleyBread", var0++), 25, 0.6F, false, "/bioxx/FoodSprites.png", 43)).b("BarleyBread").b(0, 1);
OatBread = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "OatBread", var0++), 25, 0.6F, false, "/bioxx/FoodSprites.png", 44)).b("OatBread").b(1, 1);
RyeBread = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "RyeBread", var0++), 25, 0.6F, false, "/bioxx/FoodSprites.png", 45)).b("RyeBread").b(2, 1);
RiceBread = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "RiceBread", var0++), 25, 0.6F, false, "/bioxx/FoodSprites.png", 46)).b("RiceBread").b(3, 1);
CornBread = (new ItemTerraFood(TFC_Settings.getIntFor(config, "item", "CornBread", var0++), 25, 0.6F, false, "/bioxx/FoodSprites.png", 47)).b("CornBread").b(4, 1);
short var1 = 18900;
ItemCustomSeeds var4 = new ItemCustomSeeds(
var0 = var1 + 1);
var4.<init>(TFC_Settings.getIntFor(config, "item", "SeedsWheat", var1), 0); ### THIS
SeedsWheat = var4.b("SeedsWheat").b(0, 8);
SeedsBarley = (new ItemCustomSeeds(TFC_Settings.getIntFor(config, "item", "SeedsBarley", var0++), 5)).b("SeedsBarley").b(2, 8);
SeedsRye = (new ItemCustomSeeds(TFC_Settings.getIntFor(config, "item", "SeedsRye", var0++), 7)).b("SeedsRye").b(4, 8);
SeedsOat = (new ItemCustomSeeds(TFC_Settings.getIntFor(config, "item", "SeedsOat", var0++), 9)).b("SeedsOat").b(6, 8);
SeedsRice = (new ItemCustomSeeds(TFC_Settings.getIntFor(config, "item", "SeedsRice", var0++), 11)).b("SeedsRice").b(8, 8);
SeedsMaize = (new ItemCustomSeeds(TFC_Settings.getIntFor(config, "item", "SeedsMaize", var0++), 2)).b("SeedsMaize").b(10, 8);
SeedsPotato = (new ItemCustomSeeds(TFC_Settings.getIntFor(config, "item", "SeedsPotato", var0++), 13)).b("SeedsPotato").b(12, 8);
SeedsOnion = (new ItemCustomSeeds(TFC_Settings.getIntFor(config, "item", "SeedsOnion", var0++), 15)).b("SeedsOnion").b(14, 8);
SeedsCabbage = (new ItemCustomSeeds(TFC_Settings.getIntFor(config, "item", "SeedsCabbage", var0++), 16)).b("SeedsCabbage").b(15, 8);
SeedsGarlic = (new ItemCustomSeeds(TFC_Settings.getIntFor(config, "item", "SeedsGarlic", var0++), 17)).b("SeedsGarlic").b(0, 9);
SeedsCarrot = (new ItemCustomSeeds(TFC_Settings.getIntFor(config, "item", "SeedsCarrot", var0++), 18)).b("SeedsCarrot").b(1, 9);
SeedsSugarcane = (new ItemCustomSeeds(TFC_Settings.getIntFor(config, "item", "SeedsSugarcane", var0++), 21)).b("SeedsSugarcane").b(2, 9);
SeedsHemp = (new ItemCustomSeeds(TFC_Settings.getIntFor(config, "item", "SeedsHemp", var0++), 22)).b("SeedsHemp").b(3, 9);
SeedsTomato = (new ItemCustomSeeds(TFC_Settings.getIntFor(config, "item", "SeedsTomato", var0++), 4)).b("SeedsTomato").b(4, 9);
SeedsYellowBellPepper = (new ItemCustomSeeds(TFC_Settings.getIntFor(config, "item", "SeedsYellowBellPepper", var0++), 19)).b("SeedsYellowBellPepper").b(5, 9);
SeedsRedBellPepper = (new ItemCustomSeeds(TFC_Settings.getIntFor(config, "item", "SeedsRedBellPepper", var0++), 20)).b("SeedsRedBellPepper").b(6, 9);
SeedsSoybean = (new ItemCustomSeeds(TFC_Settings.getIntFor(config, "item", "SeedsSoybean", var0++), 21)).b("SeedsSoybean").b(7, 9);
SeedsGreenbean = (new ItemCustomSeeds(TFC_Settings.getIntFor(config, "item", "SeedsGreenbean", var0++), 22)).b("SeedsGreenbean").b(8, 9);
SeedsSquash = (new ItemCustomSeeds(TFC_Settings.getIntFor(config, "item", "SeedsSquash", var0++), 23)).b("SeedsSquash").b(9, 9);
}
[toc] | [next] | [standalone]
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
|---|---|
| Date | 2012-11-09 08:28 -0500 |
| Message-ID | <k7j0et$oal$1@dont-email.me> |
| In reply to | #2237 |
On 11/9/2012 3:55 AM, v.vadim.se@gmail.com wrote:
> I got error in the following piece of code:
> [...]
> var4.<init>(TFC_Settings.getIntFor(config, "item", "SeedsWheat", var1), 0); ### THIS
^^^^^^
If you're trying to invoke a constructor, use `new'. If
you're trying to do something else, explain what you're trying
to do.
--
Eric Sosman
esosman@comcast-dot-net.invalid
[toc] | [prev] | [next] | [standalone]
| From | Вадим Воеводин <v.vadim.se@gmail.com> |
|---|---|
| Date | 2012-11-09 05:42 -0800 |
| Message-ID | <8ae1dc69-308e-4c40-94cd-c422629a6a18@googlegroups.com> |
| In reply to | #2238 |
пятница, 9 ноября 2012 г., 20:29:02 UTC+7 пользователь Eric Sosman написал: > On 11/9/2012 3:55 AM, v.vadim.se@gmail.com wrote: > > > I got error in the following piece of code: > > > [...] > > > var4.<init>(TFC_Settings.getIntFor(config, "item", "SeedsWheat", var1), 0); ### THIS > > ^^^^^^ > > If you're trying to invoke a constructor, use `new'. If > > you're trying to do something else, explain what you're trying > > to do. > > > > -- > > Eric Sosman > > esosman@comcast-dot-net.invalid All i want is to fix error, that i have, then recompiling. See screenshot: http://ipic.su/img/img7/fs/kiss_2kb.1352468497.png
[toc] | [prev] | [next] | [standalone]
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
|---|---|
| Date | 2012-11-09 09:00 -0500 |
| Message-ID | <k7j2ak$48h$1@dont-email.me> |
| In reply to | #2239 |
On 11/9/2012 8:42 AM, Вадим Воеводин wrote:
> пятница, 9 ноября 2012 г., 20:29:02 UTC+7 пользователь Eric Sosman написал:
>> On 11/9/2012 3:55 AM, v.vadim.se@gmail.com wrote:
>>> I got error in the following piece of code:
>>> [...]
>>> var4.<init>(TFC_Settings.getIntFor(config, "item", "SeedsWheat", var1), 0); ### THIS
>> ^^^^^^
>> If you're trying to invoke a constructor, use `new'. If
>> you're trying to do something else, explain what you're trying
>> to do.
>
> All i want is to fix error, that i have, then recompiling. See screenshot:
> http://ipic.su/img/img7/fs/kiss_2kb.1352468497.png
To get rid of the error, delete the line of code.
If you wanted that line to do something, explain what you
wanted it to do. As things stand, the line is meaningless.
--
Eric Sosman
esosman@comcast-dot-net.invalid
[toc] | [prev] | [next] | [standalone]
| From | Вадим Воеводин <v.vadim.se@gmail.com> |
|---|---|
| Date | 2012-11-09 06:11 -0800 |
| Message-ID | <1654e9d6-505d-4ffe-882b-632b75ca3388@googlegroups.com> |
| In reply to | #2240 |
пятница, 9 ноября 2012 г., 21:00:52 UTC+7 пользователь Eric Sosman написал: > On 11/9/2012 8:42 AM, Вадим Воеводин wrote: > > > пятница, 9 ноября 2012 г., 20:29:02 UTC+7 пользователь Eric Sosman написал: > > >> On 11/9/2012 3:55 AM, v.vadim.se@gmail.com wrote: > > >>> I got error in the following piece of code: > > >>> [...] > > >>> var4.<init>(TFC_Settings.getIntFor(config, "item", "SeedsWheat", var1), 0); ### THIS > > >> ^^^^^^ > > >> If you're trying to invoke a constructor, use `new'. If > > >> you're trying to do something else, explain what you're trying > > >> to do. > > > > > > All i want is to fix error, that i have, then recompiling. See screenshot: > > > http://ipic.su/img/img7/fs/kiss_2kb.1352468497.png > > > > To get rid of the error, delete the line of code. > > > > If you wanted that line to do something, explain what you > > wanted it to do. As things stand, the line is meaningless. > > > > -- > > Eric Sosman > > esosman@comcast-dot-net.invalid I already tried to delete line, next thing is that after that a get 100+ errors after that line, i think it doing something, but i don't know, what exacly.
[toc] | [prev] | [next] | [standalone]
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
|---|---|
| Date | 2012-11-09 09:18 -0500 |
| Message-ID | <k7j3bi$apc$1@dont-email.me> |
| In reply to | #2241 |
On 11/9/2012 9:11 AM, Вадим Воеводин wrote:
> пятница, 9 ноября 2012 г., 21:00:52 UTC+7 пользователь Eric Sosman написал:
>> On 11/9/2012 8:42 AM, Вадим Воеводин wrote:
>>> пятница, 9 ноября 2012 г., 20:29:02 UTC+7 пользователь Eric Sosman написал:
>>>> On 11/9/2012 3:55 AM, v.vadim.se@gmail.com wrote:
>>>>> I got error in the following piece of code:
>>>>> [...]
>>>>> var4.<init>(TFC_Settings.getIntFor(config, "item", "SeedsWheat", var1), 0); ### THIS
>>>> ^^^^^^
>>
>>>> If you're trying to invoke a constructor, use `new'. If
>>>> you're trying to do something else, explain what you're trying
>>>> to do.
>>
>>> All i want is to fix error, that i have, then recompiling. See screenshot:
>>> http://ipic.su/img/img7/fs/kiss_2kb.1352468497.png
>>
>> To get rid of the error, delete the line of code.
>>
>> If you wanted that line to do something, explain what you
>> wanted it to do. As things stand, the line is meaningless.
>
> I already tried to delete line, next thing is that after that a get 100+ errors after that line, i think it doing something, but i don't know, what exacly.
I do not know how to help you, because I do not know what
you want the code to do. Sometimes a piece of code "almost"
makes sense, and I can guess what was intended and suggest a
change. But I'm unable to imagine what your code is supposed
to do, so I don't know what kind of fix to suggest. Sorry.
--
Eric Sosman
esosman@comcast-dot-net.invalid
[toc] | [prev] | [next] | [standalone]
| From | Вадим Воеводин <v.vadim.se@gmail.com> |
|---|---|
| Date | 2012-11-09 07:10 -0800 |
| Message-ID | <4b547aa9-40c8-4fb5-b2a7-95207142cce5@googlegroups.com> |
| In reply to | #2242 |
пятница, 9 ноября 2012 г., 21:18:27 UTC+7 пользователь Eric Sosman написал: > On 11/9/2012 9:11 AM, Вадим Воеводин wrote: > > > пятница, 9 ноября 2012 г., 21:00:52 UTC+7 пользователь Eric Sosman написал: > > >> On 11/9/2012 8:42 AM, Вадим Воеводин wrote: > > >>> пятница, 9 ноября 2012 г., 20:29:02 UTC+7 пользователь Eric Sosman написал: > > >>>> On 11/9/2012 3:55 AM, v.vadim.se@gmail.com wrote: > > >>>>> I got error in the following piece of code: > > >>>>> [...] > > >>>>> var4.<init>(TFC_Settings.getIntFor(config, "item", "SeedsWheat", var1), 0); ### THIS > > >>>> ^^^^^^ > > >> > > >>>> If you're trying to invoke a constructor, use `new'. If > > >>>> you're trying to do something else, explain what you're trying > > >>>> to do. > > >> > > >>> All i want is to fix error, that i have, then recompiling. See screenshot: > > >>> http://ipic.su/img/img7/fs/kiss_2kb.1352468497.png > > >> > > >> To get rid of the error, delete the line of code. > > >> > > >> If you wanted that line to do something, explain what you > > >> wanted it to do. As things stand, the line is meaningless. > > > > > > I already tried to delete line, next thing is that after that a get 100+ errors after that line, i think it doing something, but i don't know, what exacly. > > > > I do not know how to help you, because I do not know what > > you want the code to do. Sometimes a piece of code "almost" > > makes sense, and I can guess what was intended and suggest a > > change. But I'm unable to imagine what your code is supposed > > to do, so I don't know what kind of fix to suggest. Sorry. > > > > -- > > Eric Sosman > > esosman@comcast-dot-net.invalid I suggest, that line add something, that is under.
[toc] | [prev] | [next] | [standalone]
| From | Daniel Pitts <newsgroup.nospam@virtualinfinity.net> |
|---|---|
| Date | 2012-11-09 10:15 -0500 |
| Message-ID | <269ns.7452$ND1.292@newsfe08.iad> |
| In reply to | #2241 |
On 11/9/12 9:11 AM, Вадим Воеводин wrote: > пятница, 9 ноября 2012 г., 21:00:52 UTC+7 пользователь Eric Sosman написал: >> On 11/9/2012 8:42 AM, Вадим Воеводин wrote: >> >>> пятница, 9 ноября 2012 г., 20:29:02 UTC+7 пользователь Eric Sosman написал: >> >>>> On 11/9/2012 3:55 AM, v.vadim.se@gmail.com wrote: >> >>>>> I got error in the following piece of code: >> >>>>> [...] >> >>>>> var4.<init>(TFC_Settings.getIntFor(config, "item", "SeedsWheat", var1), 0); ### THIS >> >>>> ^^^^^^ >> >>>> If you're trying to invoke a constructor, use `new'. If >> >>>> you're trying to do something else, explain what you're trying >> >>>> to do. >> >>> >> >>> All i want is to fix error, that i have, then recompiling. See screenshot: >> >>> http://ipic.su/img/img7/fs/kiss_2kb.1352468497.png >> >> >> >> To get rid of the error, delete the line of code. >> >> >> >> If you wanted that line to do something, explain what you >> >> wanted it to do. As things stand, the line is meaningless. >> >> >> >> -- >> >> Eric Sosman >> >> esosman@comcast-dot-net.invalid > > I already tried to delete line, next thing is that after that a get 100+ errors after that line, i think it doing something, but i don't know, what exacly. > So the question is, why did you add that line? Can you give us the rest of the code? What is your actual (end) goal?
[toc] | [prev] | [next] | [standalone]
| From | Вадим Воеводин <v.vadim.se@gmail.com> |
|---|---|
| Date | 2012-11-09 07:37 -0800 |
| Message-ID | <db208ba0-769f-44c3-9f7f-ed980586b8bc@googlegroups.com> |
| In reply to | #2244 |
пятница, 9 ноября 2012 г., 22:15:11 UTC+7 пользователь Daniel Pitts написал: > On 11/9/12 9:11 AM, Вадим Воеводин wrote: > > > пятница, 9 ноября 2012 г., 21:00:52 UTC+7 пользователь Eric Sosman написал: > > >> On 11/9/2012 8:42 AM, Вадим Воеводин wrote: > > >> > > >>> пятница, 9 ноября 2012 г., 20:29:02 UTC+7 пользователь Eric Sosman написал: > > >> > > >>>> On 11/9/2012 3:55 AM, v.vadim.se@gmail.com wrote: > > >> > > >>>>> I got error in the following piece of code: > > >> > > >>>>> [...] > > >> > > >>>>> var4.<init>(TFC_Settings.getIntFor(config, "item", "SeedsWheat", var1), 0); ### THIS > > >> > > >>>> ^^^^^^ > > >> > > >>>> If you're trying to invoke a constructor, use `new'. If > > >> > > >>>> you're trying to do something else, explain what you're trying > > >> > > >>>> to do. > > >> > > >>> > > >> > > >>> All i want is to fix error, that i have, then recompiling. See screenshot: > > >> > > >>> http://ipic.su/img/img7/fs/kiss_2kb.1352468497.png > > >> > > >> > > >> > > >> To get rid of the error, delete the line of code. > > >> > > >> > > >> > > >> If you wanted that line to do something, explain what you > > >> > > >> wanted it to do. As things stand, the line is meaningless. > > >> > > >> > > >> > > >> -- > > >> > > >> Eric Sosman > > >> > > >> esosman@comcast-dot-net.invalid > > > > > > I already tried to delete line, next thing is that after that a get 100+ errors after that line, i think it doing something, but i don't know, what exacly. > > > > > So the question is, why did you add that line? Can you give us the rest > > of the code? What is your actual (end) goal? I'm not owner of the code. This is one of the java files (there are many of them). I should recompile all these java's to a one zip, that contain class files. This is a mod for Minecraft.
[toc] | [prev] | [next] | [standalone]
| From | Daniel Pitts <newsgroup.nospam@virtualinfinity.net> |
|---|---|
| Date | 2012-11-09 10:45 -0500 |
| Message-ID | <ey9ns.28227$2Q3.22181@newsfe25.iad> |
| In reply to | #2245 |
On 11/9/12 10:37 AM, Вадим Воеводин wrote: > пятница, 9 ноября 2012 г., 22:15:11 UTC+7 пользователь Daniel Pitts написал: >> On 11/9/12 9:11 AM, Вадим Воеводин wrote: >> >>> пятница, 9 ноября 2012 г., 21:00:52 UTC+7 пользователь Eric Sosman написал: >> >>>> On 11/9/2012 8:42 AM, Вадим Воеводин wrote: >> >>>> >> >>>>> пятница, 9 ноября 2012 г., 20:29:02 UTC+7 пользователь Eric Sosman написал: >> >>>> >> >>>>>> On 11/9/2012 3:55 AM, v.vadim.se@gmail.com wrote: >> >>>> >> >>>>>>> I got error in the following piece of code: >> >>>> >> >>>>>>> [...] >> >>>> >> >>>>>>> var4.<init>(TFC_Settings.getIntFor(config, "item", "SeedsWheat", var1), 0); ### THIS >> >>>> >> >>>>>> ^^^^^^ >> >>>> >> >>>>>> If you're trying to invoke a constructor, use `new'. If >> >>>> >> >>>>>> you're trying to do something else, explain what you're trying >> >>>> >> >>>>>> to do. >> >>>> >> >>>>> >> >>>> >> >>>>> All i want is to fix error, that i have, then recompiling. See screenshot: >> >>>> >> >>>>> http://ipic.su/img/img7/fs/kiss_2kb.1352468497.png >> >>>> >> >>>> >> >>>> >> >>>> To get rid of the error, delete the line of code. >> >>>> >> >>>> >> >>>> >> >>>> If you wanted that line to do something, explain what you >> >>>> >> >>>> wanted it to do. As things stand, the line is meaningless. >> >>>> >> >>>> >> >>>> >> >>>> -- >> >>>> >> >>>> Eric Sosman >> >>>> >> >>>> esosman@comcast-dot-net.invalid >> >>> >> >>> I already tried to delete line, next thing is that after that a get 100+ errors after that line, i think it doing something, but i don't know, what exacly. >> >>> >> >> So the question is, why did you add that line? Can you give us the rest >> >> of the code? What is your actual (end) goal? > > I'm not owner of the code. This is one of the java files (there are many of them). I should recompile all these java's to a one zip, that contain class files. This is a mod for Minecraft. > Where did you get this mod? It seems possible to me that this isn't actually Java source, but either decompiler output, or a description of how to modify the byte-code. I suggest asking the original author about how to install/compile the mod.
[toc] | [prev] | [next] | [standalone]
| From | Вадим Воеводин <v.vadim.se@gmail.com> |
|---|---|
| Date | 2012-11-09 07:54 -0800 |
| Message-ID | <dfb616da-b0d0-432f-b85c-2e949ff141f3@googlegroups.com> |
| In reply to | #2246 |
пятница, 9 ноября 2012 г., 22:45:17 UTC+7 пользователь Daniel Pitts написал: > On 11/9/12 10:37 AM, Вадим Воеводин wrote: > > > пятница, 9 ноября 2012 г., 22:15:11 UTC+7 пользователь Daniel Pitts написал: > > >> On 11/9/12 9:11 AM, Вадим Воеводин wrote: > > >> > > >>> пятница, 9 ноября 2012 г., 21:00:52 UTC+7 пользователь Eric Sosman написал: > > >> > > >>>> On 11/9/2012 8:42 AM, Вадим Воеводин wrote: > > >> > > >>>> > > >> > > >>>>> пятница, 9 ноября 2012 г., 20:29:02 UTC+7 пользователь Eric Sosman написал: > > >> > > >>>> > > >> > > >>>>>> On 11/9/2012 3:55 AM, v.vadim.se@gmail.com wrote: > > >> > > >>>> > > >> > > >>>>>>> I got error in the following piece of code: > > >> > > >>>> > > >> > > >>>>>>> [...] > > >> > > >>>> > > >> > > >>>>>>> var4.<init>(TFC_Settings.getIntFor(config, "item", "SeedsWheat", var1), 0); ### THIS > > >> > > >>>> > > >> > > >>>>>> ^^^^^^ > > >> > > >>>> > > >> > > >>>>>> If you're trying to invoke a constructor, use `new'. If > > >> > > >>>> > > >> > > >>>>>> you're trying to do something else, explain what you're trying > > >> > > >>>> > > >> > > >>>>>> to do. > > >> > > >>>> > > >> > > >>>>> > > >> > > >>>> > > >> > > >>>>> All i want is to fix error, that i have, then recompiling. See screenshot: > > >> > > >>>> > > >> > > >>>>> http://ipic.su/img/img7/fs/kiss_2kb.1352468497.png > > >> > > >>>> > > >> > > >>>> > > >> > > >>>> > > >> > > >>>> To get rid of the error, delete the line of code. > > >> > > >>>> > > >> > > >>>> > > >> > > >>>> > > >> > > >>>> If you wanted that line to do something, explain what you > > >> > > >>>> > > >> > > >>>> wanted it to do. As things stand, the line is meaningless. > > >> > > >>>> > > >> > > >>>> > > >> > > >>>> > > >> > > >>>> -- > > >> > > >>>> > > >> > > >>>> Eric Sosman > > >> > > >>>> > > >> > > >>>> esosman@comcast-dot-net.invalid > > >> > > >>> > > >> > > >>> I already tried to delete line, next thing is that after that a get 100+ errors after that line, i think it doing something, but i don't know, what exacly. > > >> > > >>> > > >> > > >> So the question is, why did you add that line? Can you give us the rest > > >> > > >> of the code? What is your actual (end) goal? > > > > > > I'm not owner of the code. This is one of the java files (there are many of them). I should recompile all these java's to a one zip, that contain class files. This is a mod for Minecraft. > > > > > > > Where did you get this mod? It seems possible to me that this isn't > > actually Java source, but either decompiler output, or a description of > > how to modify the byte-code. > > > > I suggest asking the original author about how to install/compile the mod. I get this mod from official site, and yes, it's a decompiler output, that's why where are errors. I will try to ask author.
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2012-11-10 11:21 -0800 |
| Message-ID | <o3at985fohjjeenvch5dfod45o8d189o20@4ax.com> |
| In reply to | #2237 |
On Fri, 9 Nov 2012 00:55:45 -0800 (PST), v.vadim.se@gmail.com wrote, quoted or indirectly quoted someone who said : >I got error in the following piece of code: see http://mindprod.com/jgloss/compileerrormessages.html It will give you some hints as the meaning of various compile tem messages and their possible causes. see http://mindprod.com/jgloss/runerrormessages.html It does the same for run time error messages. -- Roedy Green Canadian Mind Products http://mindprod.com Ironically, even though the Internet was created by the US military [DARPA (Defense Advanced Research Projects Agency)] to withstand a nuclear attack, it is almost defenceless against malice from any of its users
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.help
csiph-web