473,320 Members | 2,041 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,320 software developers and data experts.

terminated, exit value error

nomad
664 Expert 512MB
When I run my project I get this error.

<terminated, exit value: 0>C:\Program Files\EasyEclipse Desktop Java 1.2.1\jre\bin\javaw.exe (Jun 12, 2007 7:50:41 AM)

What is the cause of this.

Do you need to see my code?

nomad
Jun 12 '07 #1
4 9220
nomad
664 Expert 512MB
When I run my project I get this error.

<terminated, exit value: 0>C:\Program Files\EasyEclipse Desktop Java 1.2.1\jre\bin\javaw.exe (Jun 12, 2007 7:50:41 AM)

What is the cause of this.

Do you need to see my code?

nomad
here is my code for this project.

Expand|Select|Wrap|Line Numbers
  1.  import java.util.*; 
  2.  
  3.  
  4.  
  5. public class HolidaySked {
  6.  
  7. BitSet sked;
  8.  
  9.  
  10.  
  11. public HolidaySked() {
  12.  
  13. sked = new BitSet(365);
  14.  
  15. int[] holiday = { 1, 20, 43, 48, 53, 116, 132, 147, 166, 167,
  16.  
  17. 189, 245, 287, 316, 328, 360 };
  18.  
  19. for (int i = 0; i < holiday.length; i++) {
  20.  
  21. addHoliday(holiday[i]);
  22.  
  23. }
  24.  
  25. }
  26.  
  27.  
  28.  
  29. public void addHoliday(int dayToAdd) {
  30.  
  31. sked.set(dayToAdd); 
  32.  
  33. }
  34.  
  35.  
  36.  
  37. public boolean isHoliday(int dayToCheck) {
  38.  
  39. boolean result = sked.get(dayToCheck);
  40.  
  41. return result;
  42.  
  43. }
  44.  
  45.  
  46.  
  47. public static void main(String[] arguments) {
  48.  
  49. HolidaySked cal = new HolidaySked();
  50.  
  51. if (arguments.length > 0) {
  52.  
  53. try {
  54.  
  55. int whichDay = Integer.parseInt(arguments[0]);
  56.  
  57. if (cal.isHoliday(whichDay)) {
  58.  
  59. System.out.println("Day number " + whichDay +
  60.  
  61. " is a holiday.");
  62.  
  63. } else {
  64.  
  65. System.out.println("Day number " + whichDay +
  66.  
  67. " is not a holiday.");
  68.  
  69. }
  70.  
  71. } catch (NumberFormatException nfe) {
  72.  
  73. System.out.println("Error: " + nfe.getMessage());
  74.  
  75. }
  76.  
  77. }
  78.  
  79. }
  80.  
Expand|Select|Wrap|Line Numbers
  1.  
  2.  

Jun 12 '07 #2
JosAH
11,448 Expert 8TB
Are you sure you're passing at least one argument to your main() method?

kind regards,

Jos
Jun 12 '07 #3
nomad
664 Expert 512MB
Are you sure you're passing at least one argument to your main() method?

kind regards,

Jos
never mind I got it....
Jun 12 '07 #4
JosAH
11,448 Expert 8TB
never mind I got it....
So what was the problem then? Maybe others are interested in your solution.

kind regards,

Jos
Jun 12 '07 #5

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

Similar topics

0
by: Gene Mat | last post by:
Hi, I'm trying to build a simple Perl program to get a list of newsgroups. Here's what I have... #!/opt/local/bin/perl use Net::NNTP; $nntp = Net::NNTP->new("nntp.perl.org",Debug,10);...
7
by: matthew_carver | last post by:
Hello, I have an ASP page that loops through a SQL Server 2000 table, then downloads an Excel sheet the users can save, etc. Works fine, except, I see that in one particular "comments" field the...
7
by: meyvn77 | last post by:
My update query updates about 50 columns and they all have the same format: (Im using ADP to interact with the SQL Server) UPDATE dbo.GIS_EVENTS_TEMP SET VEH1TYPE = (SELECT VEHICLETYPE...
1
by: Tyson | last post by:
Hi Very novice sorry. Trying to add a simple query to a textbox...I am getting Enter Parameter Value I have a Form called (frm_tbl_RR_Datacapture). With a series of Textboxes. I am wanting...
0
by: Mark C via AccessMonster.com | last post by:
Ok bare with me on this one.... I have 1 table "Expenses" that holds about 50 fields broken down into sub categories. I have a Subform tied to a main form so that when I pull up a client it...
2
by: pbmanikandan | last post by:
Horrible error. I use a function called cleanse company name that "removes" some strings if present from a string that is passed to it. In a procedure, I do the following. INSERT into table1...
2
by: amoldiego | last post by:
Hi , I created one procedure ...When i called that procedure ..I get ORA-06502: PL/SQL: numeric or value error error... All the in parameter and there datatype passed are correct ,,,,still I got...
2
by: preeti13 | last post by:
Hi guys i am here with my another probelm please help me.trying insert the value into the data base but getting the null value error .I am getting thsi error Cannot insert the value NULL into...
0
by: michels287 | last post by:
With a single record in my table, I can use this code: Private Sub Command1_Click() Set cn = New ADODB.Connection cn.Open "Provider=MSDASQL.1;Persist Security Info=False;" & _ "Data...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.