473,394 Members | 1,755 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,394 software developers and data experts.

help me to compile it

34
Expand|Select|Wrap|Line Numbers
  1. public interface IMain
  2. {
  3.         public class Main
  4.         {
  5.               public static void main(String [] args)
  6.                {
  7.                    System.out.println("The main is defined inside an   
  8.                                                  Interface ");         
  9.                } 
  10.        }
  11. }
  12.  
compile the program using javac.
run the program by typing java IMain$Main.
-----------------------------------------------------------------------------------------------------------
When you post your reply see the legend on the right of your edit window;
it explains how to use the code tags. Don't use the 'b' tag, use the 'code' tag
instead (see above for the result).

kind regards,

Jos
Mar 27 '08 #1
9 1499
Nepomuk
3,112 Expert 2GB
So, what's the problem?

Greetings,
Nepomuk
Mar 27 '08 #2
r035198x
13,262 8TB
public interface IMain
{
public class Main
{
public static void main(String [] args)
{
System.out.println("The main is defined inside an
Interface ");
}
}
}

compile the program using javac.
run the program by typing java IMain$Main .
What is the problem then?
Mar 27 '08 #3
r035198x
13,262 8TB
So, what's the problem?

Greetings,
Nepomuk
Spent some time in the wild west training your fingers?
Mar 27 '08 #4
Nepomuk
3,112 Expert 2GB
Spent some time in the wild west training your fingers?
Nope, spent some time in a place so cold, my fingers are really freezing.
Oh, and my Laptop is broken, which makes life a bit more difficult... Still have to take care of that.

Greetings,
Nepomuk
Mar 27 '08 #5
JosAH
11,448 Expert 8TB
Nope, spent some time in a place so cold, my fingers are really freezing.
Oh, and my Laptop is broken, which makes life a bit more difficult... Still have to take care of that.

Greetings,
Nepomuk
I didn't know laptops could freeze? Nevertheless its insane to go and sit out in
the cold while playing with your laptop.

kind regards,

Jos ;-)
Mar 27 '08 #6
pralu
34
So, what's the problem?

Greetings,
Nepomuk

its giving me the error while m compiling .......
Mar 27 '08 #7
lotus18
866 512MB
its giving me the error while m compiling .......
So how do you compile it?
Mar 27 '08 #8
r035198x
13,262 8TB
its giving me the error while m compiling .......
And it refused to tell you what the error message was?
Mar 27 '08 #9
JosAH
11,448 Expert 8TB
And it refused to tell you what the error message was?
Yep, he must be using the harshjavac compiler, it only tells you this:

Expand|Select|Wrap|Line Numbers
  1. $harshjavac MyClass.java
  2. complaint: I saw an error sh*t for brains: I'm out of here
  3. and I didn't like the code much either: source file removed.
  4. So there.
  5. $
  6.  
kind regards,

Jos ;-)
Mar 27 '08 #10

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

Similar topics

21
by: Dave | last post by:
After following Microsofts admonition to reformat my system before doing a final compilation of my app I got many warnings/errors upon compiling an rtf file created in word. I used the Help...
5
by: xuatla | last post by:
Hi, I encountered the following compile error of c++ and hope to get your help. test2.cpp: In member function `CTest CTest::operator+=(CTest&)': test2.cpp:79: error: no match for 'operator='...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
2
by: bradleyp | last post by:
Hi all, Hopefully somebody can help. In Access 2002-SP2, I receive an error from the VB Editor if I try to compile the following code (see below). The error is as follows: Compile Error:...
4
by: Chronologic | last post by:
All, I have an issue I would like some expert help on. I understand, or so I believe, that C# does not support the concept of a "compile time macro". At least not in the sense I'm looking...
4
by: livin | last post by:
my log... INFO urllib.urlopen('http://192.168.1.11/hact/kitchen.asp', urllib.urlencode({'Action': 'hs.ExecX10ByName+Kitchen+Lights%2C+On %2C+100&x=4&y=6'})) INFO INFO File...
2
by: MLH | last post by:
I did these 4 steps to create a topic file 1 Open a new file in a word processor or text editor that can handle rich text format. 2 Write your individual topics, separating each topic with a...
1
by: Rahul | last post by:
Hi Everybody I have some problem in my script. please help me. This is script file. I have one *.inq file. I want run this script in XML files. But this script errors shows . If u want i am...
17
by: Nirjhar Oberoi | last post by:
Hi, I am new to Linux and wanted to know how to use GCC to Compile the Code written in C? I dont want to use EMacs or VI for my editor. Can you suggest a good IDE for linux for C Programming.. ...
2
by: Smokey Grindel | last post by:
In MCF apps we get a help section of our application solution which holds HTML documents and the Help Workshop HPP files that compile every time you build your app... is there anyway to do this in...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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,...
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...

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.