- 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.
-----------------------------------------------------------------------------------------------------------
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
9 1499
So, what's the problem?
Greetings,
Nepomuk
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?
So, what's the problem?
Greetings,
Nepomuk
Spent some time in the wild west training your fingers?
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
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 ;-)
So, what's the problem?
Greetings,
Nepomuk
its giving me the error while m compiling .......
its giving me the error while m compiling .......
So how do you compile it?
its giving me the error while m compiling .......
And it refused to tell you what the error message was?
And it refused to tell you what the error message was?
Yep, he must be using the harshjavac compiler, it only tells you this: -
$harshjavac MyClass.java
-
complaint: I saw an error sh*t for brains: I'm out of here
-
and I didn't like the code much either: source file removed.
-
So there.
-
$
-
kind regards,
Jos ;-)
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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='...
|
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
--------------------------------------------------------------------------------
...
|
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:...
|
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...
|
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...
|
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...
|
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...
|
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..
...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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...
|
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...
|
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...
| |