Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 24th, 2004, 12:58 PM   #1
Lethns
Newbie
 
Join Date: Nov 2004
Posts: 22
Rep Power: 0 Lethns is on a distinguished road
error: cannot read: /tmp/8010/DD.java
1 error

I got this error but I have no idea what it means


Quote:
public class POLI_SUP
{
POP_SUP = 1-100; /*Population support, which is affected by unemployment, consumer goods, etc*/
POP_SUP*(0.4) = DISSENT; /*DISSENT is just a more extreme version of POP_SUP*/
}
{
public class COUP extends POP_SUP
if POP_SUP => 20 & ARMED_SPEND<CON_GOODS; /*Don't worry more is coming soon*/
COUP(1-100) = COUP_SUC(%49) COUP_FAI(%49) COV_WAR(%2);
if COUP_SUC +20 Rig, +40 Aut;
if COUP_FAI +5 POP_SUP, -30 WEP;
if CIV_WAR do CIV_WAR
}
Lethns is offline   Reply With Quote
Old Dec 25th, 2004, 1:55 PM   #2
Lethns
Newbie
 
Join Date: Nov 2004
Posts: 22
Rep Power: 0 Lethns is on a distinguished road
Can anyone help?
Lethns is offline   Reply With Quote
Old Dec 25th, 2004, 6:20 PM   #3
ZenMasterJG
Hobbyist Programmer
 
ZenMasterJG's Avatar
 
Join Date: Nov 2004
Location: Boston, MA
Posts: 148
Rep Power: 5 ZenMasterJG is on a distinguished road
Send a message via AIM to ZenMasterJG
that doesnt really look like valid java code to me...
make sure that your files are the same name as the class they contain.
Example:

foo.java
public class foo {
 //Class foo stuff.
}

moo.java
public class moo {
 //class moo stuff
}
ZenMasterJG is offline   Reply With Quote
Old Dec 26th, 2004, 6:29 PM   #4
BebopFusion
Programmer
 
Join Date: Oct 2004
Posts: 52
Rep Power: 5 BebopFusion is on a distinguished road
Send a message via ICQ to BebopFusion
You should check the file name and the directory you are trying to compile from as being in a TMP folder does not make much sense.

Also declare method COUP outside the curly braces.
example
public void COUP
{
//rest of code
}

also the last line of the method did not have a ; .

You declared two classes in what seems like one file. You should be using methods for that.

Your if statement conditions should be in parentheses
if ( 1 == a)
a++;

check out java.sun for tutorials.
__________________
Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration. -S. Kelley
BebopFusion is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:14 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC