Import classes that are not part of any package

I have this problem with the JDK1.4 compiler:
I have a few classes that were created outside of any package for some JNI uses. When I used JDK1.3 to compile, I was able to get the compiler to find these classes by doing the following in the calling classes:
import ClassOutSideOfPackage;
Now that I am trying to use JDK 1.4, the compiler complains with the following error:
"." expected
import ClassOutSideOfPackage;
I tried to take the import out and had no luck. The compiler complained that it can't find this class. What can I do or is the only solution to change the class to include it in a package and change all relavant JNI native calls... etc. Thank you.

Removing the entire import statement should work. Check for a classpath problem if it
doesn't. It is not necessary to place in a package and recompile, though.I tried your suggestion. However, it keeps complaining that it can't find the class. The class file resides in the current directory and I have "." at the beginning of my class path. I don't see anything wrong with the classpath. Did you have this working?

Similar Messages

  • JSP's can't find Beans that are NOT part of a Package

              It appears that if a bean is NOT part of a package such as a third party
              bean, the
              JSP pages cannot locate them even though they are in your path.
              Has anyone found a workaround for this issue ?
              Thanks in advance!
              P.S. I am running WLS 5.1 SP6
              Compilation of
              'G:\weblogic\myserver\public_html\webapp\storm\WEB-INF\_tmp_war\jsp_servlet\
              _l.java' failed:
              G:\weblogic\myserver\public_html\webapp\storm\WEB-INF\_tmp_war\jsp_servlet\_
              l.java:74: Class jsp_servlet.TestBean not found in type declaration.
              probably occurred due to an error in /l.jsp line 9:
              <jsp:useBean id="myTest" class="TestBean" scope="session" />
              

    Hi,
    First of all sorry for delayed response.
    It’s not a best practice to run as RDS Server 2008 R2 will work by adding in the server in farm. For your practice you can try to create DNS entry for different RDS server. You can differentiate different IP address for your RD gateway  Server and gateway
    tries to connect the DNS and resolve them. Also you need to configure RD RAP and RD CAP policy and create RD Gateway managed group and add. When connecting you can try to select option under Network resource tab “Select an existing RD Gateway-managed group
    or create a new one”. (This is not tested in environment you can try for your case).
    For more information, you can refer below article.
    Configuring the Remote Desktop Gateway Server
    http://technet.microsoft.com/en-us/library/cc754191.aspx
    Hope it helps!
    Thanks,
    Dharmesh

  • Using custom classes that are not beans

    Hi folks,
    Is it possible to use java classes that are not beans. I mean, on a page, could you say Customer cust = new Customer("Jones", 25);
    if you had a Customer class with a constructor that took a name and age (String and int).
    If so, how do you go about this- do you need to import the class, or put it in a standard location? I'm using Tomcat, and would guess that this would go in WEB-INF/classes?
    I hope it's not a stupid question, all the literature seems to be focused on JavaBeans
    Any advice on this would be great!

    Beans are used as putting Java code into a JSP is generally considered bad practice. The advantage of the bean pattern is that you use things like:
    <jsp:setProperty name="laBean" property="someSetter" value="someValue" />so that you aren't embedding Java directly into the JSP. I'm not very religious about this particular topic personally and will throw a line or two in here and there.
    Having said that though, you can easily use any Java class in a JSP. You'll have to import it first:
    <%@ page import="java.util.*" %>And then you can easily use it like in a real Java program.

  • How can I find photos that are not assigned to any collection?

    Hi !
    I'm using LR 5.7.1 on a Mac.
    When I've retouched raw pictures with PS CC (and do not need the PSD file any longer) I export the PSD (that is in my catalog) as JPG and let it add to my catalog automatically. After that I delete the PSD file. That works fine.
    But .... the new JPG file is not assigned to any collection. That's no problem unless I forget to do it manually after that export (and import).
    That brings me to my question.
    How can I find photos that are not assigned to any collection?
    I tried it with a smart collection after I found nothing suitable in library filter. The search criteria I tried are Source -> Collection with any of the conditions. One with an empty value field, then with just a space and so on.
    Has anybody a good hint for me?
    Thomas

    You can also add numbers if you have collections that don't use alphabet characters.

  • How do I delete items from menu bar  that are not part of the OS

    How do I delete items from menu bar  that are not part of the OS

    Perhaps you could be more specific, as it is a little difficult to answer your question without any details.  I can give you some general ideas though.
    On my machine there are a few applications that have installed items into the menu bar - I'm assuming you are talking about the icons on the right hand side of the top bar. To remove those items, I would generally need to uninstall the program that created them. To do this varies a little from application to application.
    Also, sometimes an application will have preferences that allow you choose if you want to display the item in the menu bar.
    So, my general advice would be that you need to identify the application that placed the item there, and remove it from your computer.  If there is an uninstall program for that application, I would run that in the first instance.
    If you don't actually wish to uninstall the application, you may need to click on the item or run the application and see if there is a setting to not show the menu bar item.
    Hope that helps.
    Ivan

  • How can I display images that are not included in any collection?

    How can I display images that are not included in any collection (some filter or smart collection)? A smart collection with parameters "Collection - contains - empty field" does not work. Lightroom 5.

    Thank you! Good idea! I ordered letters of the alphabet (space separated), and it works.

  • HT204022 How will i delete photos I have copied into a folder from my PC to my iphone that are not part of My Photo Stream?

    Good evening everyone I need your help. How will i remove photos in an album i have copied into a folder from my PC to my iphone that are not part of My Photo Stream? tnx
    cutebraveheart

    See  >  To delete photos from your device

  • CC showing updates for CC apps that are NOT part of my subscription

    Ok,
    Aside from the massive annoyance with the duplicate versions (why didn't they just include both plugin system for a couple of versions?), I've got "updates" for apps that are NOT part of my CC subscription showing up.  I have a full suite of CS6 installed, but only the Photographers bundle for CC.  Yet I'm showing Illustrator and InDesign CC (2014) as available.  It also shows TWO lightroom 5's - one up to date, and one that needs an update.
    What gives?

    That still doesn't explain why I'm seeing two different lightroom installations in the CC list - one up to date, and one that's available.  I've previously installed/updated Lightroom through CC by the way.  But when I do run Lightroom it also prompts me to upgrade (which I haven't done either).  Something looks badly broken in the LR update process.
    And it doesn't address the available updates for applications (InDesign and Illustrator CS6) that aren't part of my CC subscription.  Since I'm now at the mercy of the CC licensing servers, I'm rather hesitant to risk corrupting my entitlements by doing anything until I understand why my entitlements are incorrect.
    Can you help me understand why they are incorrect?

  • Hey, how can i see in itunes 10 only the songs that are not part of a playlist on my ipod?

    hey, how can i see in itunes 10 only the songs that are not part of a playlist on my ipod?

    hey, how can i see in itunes 10 only the songs that are not part of a playlist on my ipod?

  • There are values for cost element 80000 that are not assigned to any line I

    Hi,
    While calulating WIP I am getting below error:
    There are values for cost element 80000 that are not assigned to any line ID
    Message no. KJ161
    Diagnosis
    Not all values for the cost element are assigned to a line ID.
    Procedure
    Assign the cost element to a line ID. If you don't want to include the cost element in results analysis, assign it to a line ID of category N.
    You can access a detailed list of unassigned cost elements as follows: Start results analysis in the individual processing mode (transaction KKA1, KKA2, or KKA3). Select the field Full log. Execute the function. On the next screen, choose Logs -> Parameter List in the menu. A list is generated. The unassigned values are shown at the end of the list.
    If cost element "+++++++++" was shown in the message, this is because in the assignment of costs and revenues to line IDs, you have not used a cost element other than the full masking "+++++++++". In this case a presummarization eliminates the information on the cost element.
    Cost Element 80000 is of type 43 Internal activity allocation, I have Masked this in OKGB as below:
    Controlling Area = FLGP
    RA Version = 0
    Masked Cost Element = 000008++++
    Masked Cost Center = ++++++++++
    Masked Activity Type = +++++
    ReqToCap= COS (Secondary Cost)
    I have Configure OKGA also but still system is giving error.
    Please help me to understand.
    Regards,
    Vivek

    I was wondering if you could help me I am trying to configure the RA key for Refurb orders and when I go into txn OKGB for the Assignment of C/E for WIP there is sample config already there which I copied.  But I am having difficulty getting the KK1A to work I am getting the message as outlined above.  Could you explain how this OKGB works and how to configure it a bit more fully.  In my sample config there is a ReqTOCap section and in it there are letters like ABR, EK, FK, EL what do they mean.  This is a screen shot of it.  I am not sure how to go about this entirely so any light you could shed would be greatly appreciated.  Can you suggest a good resource or documentation you may have, would be greatly appreciated.

  • Can not access websits that are not part of my favorites, very frustrated

    I can not access any website that was not part of my favorites through firefox. When i type in the url nothing happens it just sits there. I have tried starting firefox in safemode and still same results. I can not add any type of search engine either. i dont know when all of this happened but firefox changed over maybe a week ago and hasnt been working right since.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • I am unable to print only the first few lines of an e-mail. Also, it will then print in a very small type and will also include extraneous information on the screen that are not part of the e-mail. Is there anything I can do about this annoying problem?

    I can only print the first few lines of an e-mail, even when it is on "Full View" on my screen. Moreover, it prints with very small print that is hard to read and also contains additional material on the screen that is not part of the e-mail.
    == This happened ==
    Every time Firefox opened
    == Since the first day I started using Firefox

    I talked to Adobe Support tonight and found this issue to be a known problem with some of the Adobe Cloud products when using older hardware, in this case the C782.
    So, we found a workaround. Unfortunately the work around isn’t efficient and adds more steps to their normal printing routine
    Open InDesign and create, modify delete the card
    Select FileàExport
    A window will appear. Pick the location you wish to save the file
    Once the File is saved another window will appear
    “EXPORT Adobe PDF”
    An Export to Adobe PDF window will appear. Accept all defaults. MAKE CERTAIN “VIEW PDF
    After EXPORTING” is CHECKED
    Select Export
    Once EXPORT is complete the file will open automatically in Adobe Acrobat
    Most likely the screen will be very large
    Select the + - sign at the top of the page to adjust the page size to view the image
    Select FileàPrint
    The Print window will appear
    Select the printer from the drop down
    # of COPIES is just below Printer
    Select OK
    I hope this helps anyone who is having similar issues
    Thanks

  • How to Show All Packages, That are not required by any other package

    I need a way to see al the installed packages thar are not required by any other package
    Thanks in advance ...

    You probably want pacman -Qt or pacman -Qdt
    Check out man pacman.

  • IPhoto 11, how do I view photos that are not assigned to any album?

    I am trying to orginize my photo library (iPhoto 11) a bit better. I have 7,500 photos and I'm looking to find which ones are not in any album. I saw sugesstions for iPhoto 09 where you can make a smart folder for that very situation, however I don't see that ability in 11. Any suggestions? Thanks

    File -> New Smart Album
    Album -> Is not -> Any
    Regards
    TD

  • I'm getting classes that are not from JDBC Driver

    Hello
    I configured a data source connection against RAC using the oracle.jdbc.pool.OracleDataSource. When I get the connection and check what classes I'm getting I get the following:
    java.sql.Connection: com.evermind.sql.DriverManagerConnectionPoolConnection
    java.sql.PreparedStatement: com.evermind.sql.FilterPreparedStatement
    where I should be getting OraclePoolConnection and OraclePreparedStatement.
    Data Source:
    <data-source class="oracle.jdbc.pool.OracleDataSource" name="Test" locat
    ion="jdbc/Test" pooled-location="jdbc/pool/Test" username="seniat" password="seniat" url="jdbc:oracle:thin:@(DESCRIPTION = (LOAD_BALANCE = ON)(FAILOVER = ON)(ADDRESS = (PROTOCOL = TCP)(HOST = server1)(PORT = 1521))(ADDRESS = (PROTOCOL = TCP)(HOST = server2)(PORT = 1521))(CONNECT_DATA = (SERVICE_NAME = service)(failover_mode=(type=select)(method=basic)" max-co
    nnections="100" min-connections="10" inactivity-timeout="30"/>

    Launch System Preferences and select the Mail, Contacts, and Calendars tab. Now select each account that's listed and see which ones have a checkmark by notes.
    Your strange notes must be coming from one of these accounts. If you have only one account with Notes checkmark it must be that one. Change the password to that account. If you have more than one account with Notes you'll have to experiment to determine which one the notes are coming from or, of course, you could change the password for all the involved accounts.
    I can't think of any other way you would be getting notes into the notepad. (Unless someone is playing a prank and actually writing them while your computer is unattended)

Maybe you are looking for

  • Can't send email from iBook but can from iMac

    I have a iMac hardwired to the Internet with Leopard. I also have a Powerbook with Leopard and a iBook with the previous operating system. My hardwired iMac is the only computer that can send email through the my smtp server for work. It is offsite a

  • Voice Memos won't copy into i Tunes

    If I plug in my nano latest model to i Tunes I find that the ipod lists 10 voice memo's. If I look at the i Tunes library it only shows 1 voice memo & this is listed as being on a playlist. I want to get them all into iTunes. If I right click on the

  • Closed loop configuration question

    I have a motor(with encoder feedback) attached to a linear actuator(with end limit switches). The motor has a commercially bought servo drive for control.  The servo drive will accept either a step/direction (2 seperate TTL digital pulse train inputs

  • Issue with SSRS Loading Report from Definition From Assembly

    I am using SharePoint 2010. I created web-part where there is report viewer control. On the page load of the control. I am writing below codes to load report from definition. Web part is not giving any error but also not lading report. I tried to mak

  • Valuation of characteristics for unit of measure "" causes rounding diff

    Dear gurus, I am facing a problem on Goods Issue and Transfer Posting. My Material is maintained with Batch Specific Unit of Measure. Base Unit = Kg ,and Batch specific unit of Measure = BAL(Bales). My unit of Issue = BAL. For every bale at the the t