473,396 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Hello im new to java & need some basic help please

Hello im new to java & im working on some mods for a game - below is a small part which im working on . however im getting errors due to something wrong in the code - can anyone please help me understand what im doing wrong ? (below the following code is also the errors i get) THX in advance

}

static {
Property.set
((class$com$maddox$il2$objects$air$CockpitB29_TGun ner == null
? (class$com$maddox$il2$objects$air$CockpitB29_TGunn er
= class$("com.maddox.il2.objects.air.CockpitB29_TGun ner"))
: class$com$maddox$il2$objects$air$CockpitB29_TGunne r),
"aiTuretNum", 0);
((class$com$maddox$il2$objects$air$CockpitB29_TGun ner == null
? (class$com$maddox$il2$objects$air$CockpitB29_TGunn er
= class$("com.maddox.il2.objects.air.CockpitB29_TGun ner"))
: class$com$maddox$il2$objects$air$CockpitB29_TGunne r),
"aiTuretNum", 1);
Property.set
((class$com$maddox$il2$objects$air$CockpitB29_TGun ner == null
? (class$com$maddox$il2$objects$air$CockpitB29_TGunn er
= class$("com.maddox.il2.objects.air.CockpitB29_TGun ner"))
: class$com$maddox$il2$objects$air$CockpitB29_TGunne r),
"weaponControlNum", 11);
Property.set
((class$com$maddox$il2$objects$air$CockpitB29_TGun ner == null
? (class$com$maddox$il2$objects$air$CockpitB29_TGunn er
= class$("com.maddox.il2.objects.air.CockpitB29_TGun ner"))
: class$com$maddox$il2$objects$air$CockpitB29_TGunne r),
"astatePilotIndx", 3);
}


================================================== =======

The following is the error im getting when compiling

C:\il2\Build>build

C:\il2\Build>path=C:\Program Files\Java\jdk1.6.0_03\bin
CockpitB29_TGunner.java:167: ')' expected
: class$com$maddox$il2$objects$air$CockpitB29_TGunne r),
^
CockpitB29_TGunner.java:164: not a statement
((class$com$maddox$il2$objects$air$CockpitB29_TGun ner == null
^
2 errors

================================================== ===

can anyone help ?
Oct 29 '07 #1
5 1413
r035198x
13,262 8TB
Hello im new to java & im working on some mods for a game - below is a small part which im working on . however im getting errors due to something wrong in the code - can anyone please help me understand what im doing wrong ? (below the following code is also the errors i get) THX in advance

}

static {
Property.set
((class$com$maddox$il2$objects$air$CockpitB29_TGun ner == null
? (class$com$maddox$il2$objects$air$CockpitB29_TGunn er
= class$("com.maddox.il2.objects.air.CockpitB29_TGun ner"))
: class$com$maddox$il2$objects$air$CockpitB29_TGunne r),
"aiTuretNum", 0);
((class$com$maddox$il2$objects$air$CockpitB29_TGun ner == null
? (class$com$maddox$il2$objects$air$CockpitB29_TGunn er
= class$("com.maddox.il2.objects.air.CockpitB29_TGun ner"))
: class$com$maddox$il2$objects$air$CockpitB29_TGunne r),
"aiTuretNum", 1);
Property.set
((class$com$maddox$il2$objects$air$CockpitB29_TGun ner == null
? (class$com$maddox$il2$objects$air$CockpitB29_TGunn er
= class$("com.maddox.il2.objects.air.CockpitB29_TGun ner"))
: class$com$maddox$il2$objects$air$CockpitB29_TGunne r),
"weaponControlNum", 11);
Property.set
((class$com$maddox$il2$objects$air$CockpitB29_TGun ner == null
? (class$com$maddox$il2$objects$air$CockpitB29_TGunn er
= class$("com.maddox.il2.objects.air.CockpitB29_TGun ner"))
: class$com$maddox$il2$objects$air$CockpitB29_TGunne r),
"astatePilotIndx", 3);
}


================================================== =======

The following is the error im getting when compiling

C:\il2\Build>build

C:\il2\Build>path=C:\Program Files\Java\jdk1.6.0_03\bin
CockpitB29_TGunner.java:167: ')' expected
: class$com$maddox$il2$objects$air$CockpitB29_TGunne r),
^
CockpitB29_TGunner.java:164: not a statement
((class$com$maddox$il2$objects$air$CockpitB29_TGun ner == null
^
2 errors

================================================== ===

can anyone help ?
Please use code tags when posting code.
The first error message is a complete giveaway. Read it.
Oct 29 '07 #2
Ok thx but i changed it but still have 2 different errors also how do i use code tags?

}

static {
Property.set
((class$com$maddox$il2$objects$air$CockpitB29_TGun ner == null
? (class$com$maddox$il2$objects$air$CockpitB29_TGunn er
= class$("com.maddox.il2.objects.air.CockpitB29_TGun ner"))
: class$com$maddox$il2$objects$air$CockpitB29_TGunne r),
"aiTuretNum", 0);
((class$com$maddox$il2$objects$air$CockpitB29_TGun ner == null
? (class$com$maddox$il2$objects$air$CockpitB29_TGunn er
= class$("com.maddox.il2.objects.air.CockpitB29_TGun ner"))
: class$com$maddox$il2$objects$air$CockpitB29_TGunne r)),
"aiTuretNum", 0);
Property.set
((class$com$maddox$il2$objects$air$CockpitB29_TGun ner == null
? (class$com$maddox$il2$objects$air$CockpitB29_TGunn er
= class$("com.maddox.il2.objects.air.CockpitB29_TGun ner"))
: class$com$maddox$il2$objects$air$CockpitB29_TGunne r),
"weaponControlNum", 10);
Property.set
((class$com$maddox$il2$objects$air$CockpitB29_TGun ner == null
? (class$com$maddox$il2$objects$air$CockpitB29_TGunn er
= class$("com.maddox.il2.objects.air.CockpitB29_TGun ner"))
: class$com$maddox$il2$objects$air$CockpitB29_TGunne r),
"astatePilotIndx", 3);
}

===================================

C:\il2\Build>build

C:\il2\Build>path=C:\Program Files\Java\jdk1.6.0_03\bin
CockpitB29_TGunner.java:164: not a statement
((class$com$maddox$il2$objects$air$CockpitB29_TGun ner == null
^
CockpitB29_TGunner.java:167: ';' expected
: class$com$maddox$il2$objects$air$CockpitB29_TGunne r)),
^
2 errors
Oct 29 '07 #3
r035198x
13,262 8TB
Ok thx but i changed it but still have 2 different errors also how do i use code tags?

}

static {
Property.set
((class$com$maddox$il2$objects$air$CockpitB29_TGun ner == null
? (class$com$maddox$il2$objects$air$CockpitB29_TGunn er
= class$("com.maddox.il2.objects.air.CockpitB29_TGun ner"))
: class$com$maddox$il2$objects$air$CockpitB29_TGunne r),
"aiTuretNum", 0);
((class$com$maddox$il2$objects$air$CockpitB29_TGun ner == null
? (class$com$maddox$il2$objects$air$CockpitB29_TGunn er
= class$("com.maddox.il2.objects.air.CockpitB29_TGun ner"))
: class$com$maddox$il2$objects$air$CockpitB29_TGunne r)),
"aiTuretNum", 0);
Property.set
((class$com$maddox$il2$objects$air$CockpitB29_TGun ner == null
? (class$com$maddox$il2$objects$air$CockpitB29_TGunn er
= class$("com.maddox.il2.objects.air.CockpitB29_TGun ner"))
: class$com$maddox$il2$objects$air$CockpitB29_TGunne r),
"weaponControlNum", 10);
Property.set
((class$com$maddox$il2$objects$air$CockpitB29_TGun ner == null
? (class$com$maddox$il2$objects$air$CockpitB29_TGunn er
= class$("com.maddox.il2.objects.air.CockpitB29_TGun ner"))
: class$com$maddox$il2$objects$air$CockpitB29_TGunne r),
"astatePilotIndx", 3);
}

===================================

C:\il2\Build>build

C:\il2\Build>path=C:\Program Files\Java\jdk1.6.0_03\bin
CockpitB29_TGunner.java:164: not a statement
((class$com$maddox$il2$objects$air$CockpitB29_TGun ner == null
^
CockpitB29_TGunner.java:167: ';' expected
: class$com$maddox$il2$objects$air$CockpitB29_TGunne r)),
^
2 errors

Read the reply guidelines on the right of the reply box when you are posting a reply.

Guess what? The second error message is a complete giveaway as well. You are begininng to like this now aren't you?
Oct 29 '07 #4
[code]
}

static {
Property.set
((class$com$maddox$il2$objects$air$CockpitB29_TGun ner == null
? (class$com$maddox$il2$objects$air$CockpitB29_TGunn er
= class$("com.maddox.il2.objects.air.CockpitB29_TGun ner"))
: class$com$maddox$il2$objects$air$CockpitB29_TGunne r),
"aiTuretNum", 0);
((class$com$maddox$il2$objects$air$CockpitB29_TGun ner == null
? (class$com$maddox$il2$objects$air$CockpitB29_TGunn er
= class$("com.maddox.il2.objects.air.CockpitB29_TGun ner"))
: class$com$maddox$il2$objects$air$CockpitB29_TGunne r));
"aiTuretNum", 1);
Property.set
((class$com$maddox$il2$objects$air$CockpitB29_TGun ner == null
? (class$com$maddox$il2$objects$air$CockpitB29_TGunn er
= class$("com.maddox.il2.objects.air.CockpitB29_TGun ner"))
: class$com$maddox$il2$objects$air$CockpitB29_TGunne r),
"weaponControlNum", 10);
Property.set
((class$com$maddox$il2$objects$air$CockpitB29_TGun ner == null
? (class$com$maddox$il2$objects$air$CockpitB29_TGunn er
= class$("com.maddox.il2.objects.air.CockpitB29_TGun ner"))
: class$com$maddox$il2$objects$air$CockpitB29_TGunne r),
"astatePilotIndx", 3);
}

[code]

===============================================

C:\il2\Build>build

C:\il2\Build>path=C:\Program Files\Java\jdk1.6.0_03\bin
CockpitB29_TGunner.java:164: not a statement
((class$com$maddox$il2$objects$air$CockpitB29_TGun ner == null
^
CockpitB29_TGunner.java:168: not a statement
"aiTuretNum", 1);
^
CockpitB29_TGunner.java:168: ';' expected
"aiTuretNum", 1);
^
3 errors

C:\il2\Build>

ok i used the code tags

you are having a real good laugh at me arnt you ;)
please can you help me sort this i just keep running into more errors? & this time i dont think its as obvious ?
Oct 30 '07 #5
r035198x
13,262 8TB
You think I'm laughing? Ok let;s get more serious then.
You code is probably poorly indented.
If you indent your code properly you would be able to see any missing brackets e.t.c.
You are also writing long lines of code where you try to do many things in one line of code. That is not itself bad but you are running it problems because you are failing to terminate your statements properly.
Break the long lines into shorter lines so you can really see if some comma or semi-colon is missing.

Edit: Your handle is ... original.
Oct 30 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

73
by: RobertMaas | last post by:
After many years of using LISP, I'm taking a class in Java and finding the two roughly comparable in some ways and very different in other ways. Each has a decent size library of useful utilities...
1
by: Vamsi | last post by:
Hi Guys, I have installed Visual Studio.Net on my windows XP machine. First after installing all the required WCU, then installed the Visual Studio.Net. All set up was completed...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
5
by: sea | last post by:
I have 2 applications, one a Microsoft Visual Basic application and the other a Java application both connecting to the same DB2 database. The database has binary LOB objects. The Visual Basic...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.