473,811 Members | 3,135 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hello im new to java & need some basic help please

3 New Member
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$mad dox$il2$objects $air$CockpitB29 _TGunner == null
? (class$com$madd ox$il2$objects$ air$CockpitB29_ TGunner
= class$("com.mad dox.il2.objects .air.CockpitB29 _TGunner"))
: class$com$maddo x$il2$objects$a ir$CockpitB29_T Gunner),
"aiTuretNum ", 0);
((class$com$mad dox$il2$objects $air$CockpitB29 _TGunner == null
? (class$com$madd ox$il2$objects$ air$CockpitB29_ TGunner
= class$("com.mad dox.il2.objects .air.CockpitB29 _TGunner"))
: class$com$maddo x$il2$objects$a ir$CockpitB29_T Gunner),
"aiTuretNum ", 1);
Property.set
((class$com$mad dox$il2$objects $air$CockpitB29 _TGunner == null
? (class$com$madd ox$il2$objects$ air$CockpitB29_ TGunner
= class$("com.mad dox.il2.objects .air.CockpitB29 _TGunner"))
: class$com$maddo x$il2$objects$a ir$CockpitB29_T Gunner),
"weaponControlN um", 11);
Property.set
((class$com$mad dox$il2$objects $air$CockpitB29 _TGunner == null
? (class$com$madd ox$il2$objects$ air$CockpitB29_ TGunner
= class$("com.mad dox.il2.objects .air.CockpitB29 _TGunner"))
: class$com$maddo x$il2$objects$a ir$CockpitB29_T Gunner),
"astatePilotInd x", 3);
}


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

The following is the error im getting when compiling

C:\il2\Build>bu ild

C:\il2\Build>pa th=C:\Program Files\Java\jdk1 .6.0_03\bin
CockpitB29_TGun ner.java:167: ')' expected
: class$com$maddo x$il2$objects$a ir$CockpitB29_T Gunner),
^
CockpitB29_TGun ner.java:164: not a statement
((class$com$mad dox$il2$objects $air$CockpitB29 _TGunner == null
^
2 errors

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

can anyone help ?
Oct 29 '07 #1
5 1427
r035198x
13,262 MVP
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$mad dox$il2$objects $air$CockpitB29 _TGunner == null
? (class$com$madd ox$il2$objects$ air$CockpitB29_ TGunner
= class$("com.mad dox.il2.objects .air.CockpitB29 _TGunner"))
: class$com$maddo x$il2$objects$a ir$CockpitB29_T Gunner),
"aiTuretNum ", 0);
((class$com$mad dox$il2$objects $air$CockpitB29 _TGunner == null
? (class$com$madd ox$il2$objects$ air$CockpitB29_ TGunner
= class$("com.mad dox.il2.objects .air.CockpitB29 _TGunner"))
: class$com$maddo x$il2$objects$a ir$CockpitB29_T Gunner),
"aiTuretNum ", 1);
Property.set
((class$com$mad dox$il2$objects $air$CockpitB29 _TGunner == null
? (class$com$madd ox$il2$objects$ air$CockpitB29_ TGunner
= class$("com.mad dox.il2.objects .air.CockpitB29 _TGunner"))
: class$com$maddo x$il2$objects$a ir$CockpitB29_T Gunner),
"weaponControlN um", 11);
Property.set
((class$com$mad dox$il2$objects $air$CockpitB29 _TGunner == null
? (class$com$madd ox$il2$objects$ air$CockpitB29_ TGunner
= class$("com.mad dox.il2.objects .air.CockpitB29 _TGunner"))
: class$com$maddo x$il2$objects$a ir$CockpitB29_T Gunner),
"astatePilotInd x", 3);
}


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

The following is the error im getting when compiling

C:\il2\Build>bu ild

C:\il2\Build>pa th=C:\Program Files\Java\jdk1 .6.0_03\bin
CockpitB29_TGun ner.java:167: ')' expected
: class$com$maddo x$il2$objects$a ir$CockpitB29_T Gunner),
^
CockpitB29_TGun ner.java:164: not a statement
((class$com$mad dox$il2$objects $air$CockpitB29 _TGunner == 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
PeaceLovinHippy
3 New Member
Ok thx but i changed it but still have 2 different errors also how do i use code tags?

}

static {
Property.set
((class$com$mad dox$il2$objects $air$CockpitB29 _TGunner == null
? (class$com$madd ox$il2$objects$ air$CockpitB29_ TGunner
= class$("com.mad dox.il2.objects .air.CockpitB29 _TGunner"))
: class$com$maddo x$il2$objects$a ir$CockpitB29_T Gunner),
"aiTuretNum ", 0);
((class$com$mad dox$il2$objects $air$CockpitB29 _TGunner == null
? (class$com$madd ox$il2$objects$ air$CockpitB29_ TGunner
= class$("com.mad dox.il2.objects .air.CockpitB29 _TGunner"))
: class$com$maddo x$il2$objects$a ir$CockpitB29_T Gunner)),
"aiTuretNum ", 0);
Property.set
((class$com$mad dox$il2$objects $air$CockpitB29 _TGunner == null
? (class$com$madd ox$il2$objects$ air$CockpitB29_ TGunner
= class$("com.mad dox.il2.objects .air.CockpitB29 _TGunner"))
: class$com$maddo x$il2$objects$a ir$CockpitB29_T Gunner),
"weaponControlN um", 10);
Property.set
((class$com$mad dox$il2$objects $air$CockpitB29 _TGunner == null
? (class$com$madd ox$il2$objects$ air$CockpitB29_ TGunner
= class$("com.mad dox.il2.objects .air.CockpitB29 _TGunner"))
: class$com$maddo x$il2$objects$a ir$CockpitB29_T Gunner),
"astatePilotInd x", 3);
}

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

C:\il2\Build>bu ild

C:\il2\Build>pa th=C:\Program Files\Java\jdk1 .6.0_03\bin
CockpitB29_TGun ner.java:164: not a statement
((class$com$mad dox$il2$objects $air$CockpitB29 _TGunner == null
^
CockpitB29_TGun ner.java:167: ';' expected
: class$com$maddo x$il2$objects$a ir$CockpitB29_T Gunner)),
^
2 errors
Oct 29 '07 #3
r035198x
13,262 MVP
Ok thx but i changed it but still have 2 different errors also how do i use code tags?

}

static {
Property.set
((class$com$mad dox$il2$objects $air$CockpitB29 _TGunner == null
? (class$com$madd ox$il2$objects$ air$CockpitB29_ TGunner
= class$("com.mad dox.il2.objects .air.CockpitB29 _TGunner"))
: class$com$maddo x$il2$objects$a ir$CockpitB29_T Gunner),
"aiTuretNum ", 0);
((class$com$mad dox$il2$objects $air$CockpitB29 _TGunner == null
? (class$com$madd ox$il2$objects$ air$CockpitB29_ TGunner
= class$("com.mad dox.il2.objects .air.CockpitB29 _TGunner"))
: class$com$maddo x$il2$objects$a ir$CockpitB29_T Gunner)),
"aiTuretNum ", 0);
Property.set
((class$com$mad dox$il2$objects $air$CockpitB29 _TGunner == null
? (class$com$madd ox$il2$objects$ air$CockpitB29_ TGunner
= class$("com.mad dox.il2.objects .air.CockpitB29 _TGunner"))
: class$com$maddo x$il2$objects$a ir$CockpitB29_T Gunner),
"weaponControlN um", 10);
Property.set
((class$com$mad dox$il2$objects $air$CockpitB29 _TGunner == null
? (class$com$madd ox$il2$objects$ air$CockpitB29_ TGunner
= class$("com.mad dox.il2.objects .air.CockpitB29 _TGunner"))
: class$com$maddo x$il2$objects$a ir$CockpitB29_T Gunner),
"astatePilotInd x", 3);
}

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

C:\il2\Build>bu ild

C:\il2\Build>pa th=C:\Program Files\Java\jdk1 .6.0_03\bin
CockpitB29_TGun ner.java:164: not a statement
((class$com$mad dox$il2$objects $air$CockpitB29 _TGunner == null
^
CockpitB29_TGun ner.java:167: ';' expected
: class$com$maddo x$il2$objects$a ir$CockpitB29_T Gunner)),
^
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
PeaceLovinHippy
3 New Member
[code]
}

static {
Property.set
((class$com$mad dox$il2$objects $air$CockpitB29 _TGunner == null
? (class$com$madd ox$il2$objects$ air$CockpitB29_ TGunner
= class$("com.mad dox.il2.objects .air.CockpitB29 _TGunner"))
: class$com$maddo x$il2$objects$a ir$CockpitB29_T Gunner),
"aiTuretNum ", 0);
((class$com$mad dox$il2$objects $air$CockpitB29 _TGunner == null
? (class$com$madd ox$il2$objects$ air$CockpitB29_ TGunner
= class$("com.mad dox.il2.objects .air.CockpitB29 _TGunner"))
: class$com$maddo x$il2$objects$a ir$CockpitB29_T Gunner));
"aiTuretNum ", 1);
Property.set
((class$com$mad dox$il2$objects $air$CockpitB29 _TGunner == null
? (class$com$madd ox$il2$objects$ air$CockpitB29_ TGunner
= class$("com.mad dox.il2.objects .air.CockpitB29 _TGunner"))
: class$com$maddo x$il2$objects$a ir$CockpitB29_T Gunner),
"weaponControlN um", 10);
Property.set
((class$com$mad dox$il2$objects $air$CockpitB29 _TGunner == null
? (class$com$madd ox$il2$objects$ air$CockpitB29_ TGunner
= class$("com.mad dox.il2.objects .air.CockpitB29 _TGunner"))
: class$com$maddo x$il2$objects$a ir$CockpitB29_T Gunner),
"astatePilotInd x", 3);
}

[code]

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

C:\il2\Build>bu ild

C:\il2\Build>pa th=C:\Program Files\Java\jdk1 .6.0_03\bin
CockpitB29_TGun ner.java:164: not a statement
((class$com$mad dox$il2$objects $air$CockpitB29 _TGunner == null
^
CockpitB29_TGun ner.java:168: not a statement
"aiTuretNum ", 1);
^
CockpitB29_TGun ner.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 MVP
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
8091
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 as a standard portable part of the core language, the LISP package, and the java.lang package, respectively. Both have big integers, although only LISP has rationals as far as I can tell. Because CL supports keyword arguments, it has a wider range...
1
2909
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 successfully. then when i try to create a Web Application i get the error "project 'ABC' could not be opened because the microsoft
11
9283
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 C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
5
3795
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 application uses ODBC bridge and the Java application uses JDBC app driver. Inorder for the VB application to correctly load and display the LoB objects, I need to set the long object binary treatment in db2 client configuration assistant to longvar...
1
9667
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 and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the best Newsgroup for support with JAVA?
2
6971
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 attending interviews. If you own a company best way to judge if the candidate is worth of it. http://www.questpond.com/InterviewRatingSheet.zip
0
9722
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10644
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10393
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9200
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7664
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4334
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.