More than one class in a single file
Hi,
I am having two classes in one file. One is public and another one is internal. I am calling the internal class methods in some other files. If I compile the files(where I am calling the internal class methods) alone , I am getting compilation errors, If I compile whole package , I am not getting compilation errors. What is the reason. Anyone tell me.
First u mention ur code then i can tell u properly.That's completely unnecessary in this case. The explanation was clear enough.
may be u didn't write import statement in that class where u have to implement internal class methodModi, this is complete nonsense. The class would only be visible to other classes in the same package under the rules of Java, so the import statement would be redundant, and in any case it wouldn't solve the problem, as you would have discovered if you had tried it, which you obviously didn't.
@OP: the reason is that the compiler doesn't know where to find the source of the internal class when compiling the other classes that use it. Generally speaking you shouldn't do this, you should put the internal class into its own source file, unless the source file it's presently contained in is the only one that references the internal class. So, either put it into its own source file or make sure the existing source file is compiled before compiling the others.
Similar Messages
-
Can you place more than one class in a source file?
If so how is this done because I get the following error when I try to.
IPHunter.java:100: class Arguments is public, should be declared in a file named Arguments.java
public class Arguments {
Thanks in advanceWhen having two classes in the same file, only one should be public, and the file should be named with the name of that class.
Try removing public from the class Arguments, and if you have to use it from classes outside the file, you should have a file Arguments.java
Hope that helps,
Al -
Can we query more than one class in a call to .tmib
Hi,
i am creating a utility to monitor the applications at run time using mib.any
body have an idea if we can query more than one class in one call to .tmib.
thanks
roopeshThat would be an interesting enhancement, perhaps using Embedded FML to
pack multiple MIB requests into one buffer.
Product Management makes all decisions about major enhancements, and it
is based on customer need, so that's where the requests should go.
Scott Orshan
roopesh wrote:
>
yes.
i am trying to devlop a utility which can monitor
applications at runtime.i wanted to make as less the
no of calls to tmib as possible but one class does
not give all the information so i need to query
more than one.
anyways thanks for the reply.
"MS" <[email protected]> wrote:
Hi,
Are you trying to write a Tuxedo app health-check monitor utility.
A tuxedo client can make different calls to .TMIB service for different
classes.
I don't think we can query more than one class in a single call.
Are you looking for something else??/
HTH
regards
MS -
More than one class in single java source file?
Is there a way to define more than one class in single java source file?
I get a duplicate class definition error for each extra class, but I am sure there is a way to handle this in JDeveloper.
Anyone knows how ?Please post the question in jdeveloper forum at
JDeveloper and ADF
for quick response.
Regards,
Anupama
http://otn.oracle.com/sample_code/content.html -
i want to ask that if my applet have more than one class, are all classes loaded to client machine autometically or i have to do it by another way (if yes how) ?
Put all the stuff into a single zip or preferably a single jar.
-
CAN ANDROID SEND MORE THAN ONE PICTURE IN A SINGLE TEXT
Hello,
Can anyone tell me if Android Razr M is capable of sending more than one picture in a single email and how to do it? Example: I have several pictures to send to one person and do not want to send them one at a time if I don't have to. Thank youSome devices if you long press on the text screen have the ability to send more than one photo. However your owners manual usually has this information.
You also may not be able to send these multiples due to size constraints. Email is much better for these photos. Which of course is also limited by your ISP to around 10 megabytes per send.
Good Luck -
More than one portal on a single instance of EP
Hi,
I would like to know what is approach that is generally followed for hosting more than one portal on a single instance of enterprise portal server. We have a similar requirement. What about database considerations? Can we use the same database for both the portals?
Thanks & Regards,
SureshHi suresh,
you can find information about this on:
http://help.sap.com/saphelp_nw04/helpdata/en/6a/69f45201356248830f1e70fdd7178e/frameset.htm
Hope it helps You.
Award points if it helps you -
More than one style for a single link state?
RH 8 outputting CHM
Hello,
Is it possible to define more than one style for a single link state?
For example, I would like a link in the footer of my master page to be smaller than the links that appear in the body of my topics. I want to retain behavior, and simply change the point size.
I can't simply hand format in Design mode, because my link is within a script. Or, am I missing something easy here?
Thanks much.I'm pleased to say I figured out how to change the formatting of a hyperlink embedded within a script.
Within the script, I used a var string to reproduce the text in my link. Then I used another var to change the string size.
So, here's the part of my script that produces what I'm after:
var mailDisplay = 'Was this information helpful? ';
var str = 'Was this information helpful?';
var mailDisplay = str.fontsize("1");
Upon generation of the CHM, the script trumps the CSS. It's a beautiful thing. -
Allow for more than ONE item in a single row?
Allow for more than ONE item in a single row? I can't use this wonderful program unless I can get more than one field on a row (i.e. 1st name, mi, last name etc)
Thanks for your feedback. This is something we definetely want to provide next year (can't say when yet).
If others are interested in this feature please vote on it within the idea tab: http://forums.adobe.com/ideas/1046
That helps us prioritize our work based on customer demand.
Randy -
HT2736 Can you send more than one song on a single gift card?
Can you send more than one song on a single gift card?
By chapters do you mean different slideshows? Or are you referring to chapters in a movie from iMovie or Final Cut Express?
If you're referring to an iDVD slideshow then create a playlist in iTunes with the songs you want and then in iDVD's slideshow go to the Media/Audio pane and drag the playlist icon into the music bin.
OT -
More than one user to read a file
Hi,
I would like to know how to allow more than one user to read a file.
Any explanation or code samples will be helpful.
Thanks in advance
Regards
KuttyI am not at all clear regarding your question?
Ironluca -
How set value for more than one variable using a single prompt
There is a way to set more than one variable with a single prompt?
e.g. set @CurrentYear and @PasteYear using just a single prompt for @CurrentYear.
Some hint?
Thanks
LucUsing repository variables you can set like that.
Check this link http://gerardnico.com/wiki/dat/obiee/set_variable
If helps pls mark -
In Keynote, how do I put more than one image on a single slide?
I would like to put 2, 3, or 4 “pictures” on a single slide, and program them with transitions so that they could pop-on or dissolve one at a time. Is it possible to put more than one image placeholder on a slide?
Yes. Just copy-paste the placeholder that the theme has, multiple times.
-
How do I stop more than one user opening the same file?
I'm about to install Lion Server and we're concerned that more than one person will be able to open the same file at the same time. Can this be prevented? If not it seems to make the concept of a server pointless?
Any help appreciated. Already annoyed I have to phone and order 10.7 Server as it's no longer on the App Store. Can't run 10.8 as the Mac Pro is too old and Apple have cut us off.The file server software supports file locking, but multiple file access is application-dependent. In some cases it's entirely valid for multiple users to access the same file. It's up to the application to allow or deny this.
Ordinarily, if an application requires exclusive access it should flag the file accordingly when it opens the file. This will prevent other users from opening the file. However, it's not up to the server to do this. -
More than one Album for a Single Song
There're some songs which belong to more than one album,
Eg:- Seether's "Sold Me" belongs to "Disclaimer II" and "The Punisher"
so to add those songs to both the albums i have to keep two copies of the song and that leads the Genius Mixers to play the same song twice from both the albums. Isn't there a way to add a song to all the the albums by having only one copy of the song?Isn't there a way to add a song to all the the albums by having only one copy of the song?
No there is not. The album information is embedded in the file metadata. If you want the same song in multiple albums, you will need multiple copies of the song file.
As noted by the previous poster, you can delete duplicates. However, this will remove the deleted copy from its album, and does not meet your request to have one copy in multiple albums.
Maybe you are looking for
-
Iphone 4: while talking, phone automatically switches onto facetime and at other times when talking the sound "beep beep" is heard and disconnects from call? Anyone know what is happening??
-
What Are the Oracle Extensions Beyond Basic SQL?
I think I write some pretty mean queries. I've written some very tight queries with nested selects and in-line selects that take up four or five printed pages. However, all of my queries are limited to the basic clauses; select, from, where, group by
-
Aggregation rule in Logical table source
hi all, please help me about aggregation rule in logical table source. why,when and how they are used. thank you. Regards, Imtiaz BI Trainee.
-
Get you tube to play videos in 1080p HD by default
Does anyone know how to set a you tube default so all videos playback in full 1080p HD. It's so frustrating and a little ridiculous if it's based on internet connection so you tube chooses etc; as it chooses my videos to play back in 480p, but if i m
-
Making a narrative Slide show like the MS Photo Story
Just wondering is there any feature in Aperture 3, where I can easily to create a slide show With background music Narrating each photo, where I don't have to speak from the beginning to end without having the chance to pause (Where Microsoft Photo s