Installed Extensions and Package names

I've read through reams of documentation about installed extensions and have experimented with putting jars into %JRE%/lib/ext, etc. My question is - is it possible to put jars that contain classes with system package (java.*) names and use them?
This might sound like a strange thing to want to do, but I've been experimenting with the Long Term Persistence mechanism (http://java.sun.com/products/jfc/tsc/articles/persistence2/) which comes as a jar with classes of the package 'java.beans'. To use this from the command line I have been using the -Xbootclasspath option to include the jar. However, I want to deploy my app through Java Web Start and cannot (as far as I know) use that as a JVM option.
My last hope is that I can install these jars as extensions on the client and see if I can pick up the classes there. Is this a security violation though - using system package names for extensions?
Cheers
AlanB
P.S. I could use JDK1.4 which has the persistence mechanism as standard but the app server I'm using has 'mucho grande' problems with clients using 1.4!

My last hope is that I can install these jars as
extensions on the client and see if I can pick up the
classes there. Is this a security violation though -
using system package names for extensions?Unfortunately, I do believe this is the case... the only classloader that is permitted to load java.* packages is the bootstrap loader.
There is one way to know for sure, though... ;-)

Similar Messages

  • Installed Extensions and System Package Names

    I've read through reams of documentation about installed extensions and have experimented with putting jars into %JRE%/lib/ext, etc. My question is - is it possible to put jars that contain classes with system package (java.*) names and use them?
    This might sound like a strange thing to want to do, but I've been experimenting with the Long Term Persistence mechanism (http://java.sun.com/products/jfc/tsc/articles/persistence2/) which comes as a jar with classes of the package 'java.beans'. To use this from the command line I have been using the -Xbootclasspath option to include the jar. However, I want to deploy my app through Java Web Start and cannot (as far as I know) use that as a JVM option.
    My last hope is that I can install these jars as extensions on the client and see if I can pick up the classes there. Is this a security violation though - using system package names for extensions?
    Cheers
    AlanB
    P.S. I could use JDK1.4 which has the persistence mechanism as standard but the app server I'm using has 'mucho grande' problems with clients using 1.4!

    I think i may have a similar problem too. I would like to extend the new java logging classes and make a new handler. To do this, the handler needs to invoke methods in the package java.util.logging that are not public ( LogManager.getStringProperty() ). So it needs to be a part of this package and I am not sure if this is allowed. Is there a way to get around this?

  • How to fetch what are all the tables used in this TR no and Package name of

    Hi Friends,
    I have input of Transport Request no (E070-TRKORR).
    How to fetch what are all the tables used in this TR no and Package name of this Table.

    HI,
    FYI
    SELECT E071OBJECT_NAME, E070MDEVCLASS
    FROM E071, E070M
    WHERE TRKORR = YOU REQUEST NO.

  • Testing class and package name legality

    Hi all. Does the API provide a way of testing if a given class and package name is correct? I have to model a UML diagram tool. Right now, I'm doing it like this:
         public boolean canHaveAsNameStrict(String name){
              return(!name.startsWith("([0-9])+") && name.matches("([a-zA-Z_0-9])+"));
         }for a package, but this may be incmoplete etc. Also, are the brackets ([...]) and the + sign delimeters or part of the match? (I copied this code from an exercise solution, in which they were not mandatory to the solution)

    Beware - the JLS allows non-ASCII class and package names. You can have a class named "�owyn", for instance.
    class CheckPackage {
        public static void main(String[] args) {
            String pat = "([A-Za-z_$][A-Za-z0-9_$]*\\.)*[A-Za-z_$][A-Za-z0-9_$]*";
            System.out.println (args[0].matches (pat));
    }

  • Class name and package name clashing

    When i have a class and a package with the same name, I cannot access classes in the package. For example I have 3 classes and 1 package as below
    - Test.java
    - PackageName.java
    + PackageName // this is a directory
    - MyClass.java
    Below are the codes of .java files
    Test.java
    =======
    public class Test { PackageName.MyClass a = new PackageName.MyClass ();}
    PackageName.java
    ===============
    public class PackageName{ }
    MyClass.java
    ==========
    package PackageName; public class MyClass { }
    I can compile PackageName.java and MyClass.java but not Test.java. It says
    cannot resolve symbol
    symbol : class MyClass
    location: class PackageName
    PackageName.MyClass a = new PackageName.MyClass ();
    But if I remove the PackageName.java, I can compile Test.java perfectly. I think when I use PackageName.MyClass, java thinks that I try to access an inner class MyClass of PackageName class, and that does not exists. Is there any way to solve this ambiguation, other than making the package name and class name different? Thank you very much.

    This works fine: just add an import to Test.java.
    import PackageName.MyClass;
    public class Test
        public static void main(String [] args)
            MyClass a = new MyClass();
    public class PackageName {}
    package PackageName;
    public class MyClass {}It's a pretty wacky, useless example, but it works.
    Plus I thought inner classes would have a dollar sign in their .class file names. When I compile this:
    public class OuterClass
        public static void main(String [] args)
            OuterClass outer = new OuterClass();
            System.out.println(outer);
        public String toString() { return "I'm an OuterClass"; }
        class InnerClass
            public String toString() { return "I'm an InnerClass"; }
    }I see two .class files: OuterClass.class and OuterClass$InnerClass.class
    Why make up examples like this? It's hard enough writing code, and it's easy to disambiguate for the compiler.

  • Tools menu is missing items I am expecting after I install extensions and other oddities

    In the process of installing and customizing Firefox 3..6.4 on a new laptop, I noticed that when I expand the Tools menu, I do not see items for a number of the extensions I installed, which I see in Firefox on my old system.
    For example, I installed the "PDF Download" extension and did not see a selection for "PDF Download - Options" in the Tools menu. I installed quite a number of extensions and in summary, the Tools Menu never changed one bit.
    A different example. After I installed the Launchy extension. I went to customize my tool bar but the button for Launchy was not available to add to my toolbar.
    Yet another example of strangeness was after I installed IE Tab. When I right-clicked on a link the "Open link in IE Tab" did not show up in the menu..
    I tried doing a clean uninstall of Firefox following instructions from several websites and then reinstalling Firefox. Regardless of what I did, I was unable to see the expected items in the Tools menu after installing my selected extensions.
    Things start to get weird. I performed a clean uninstall of Firefox 3.6.4 and downloaded and installed Firefox 3.5.10 and proceeded to install all of the extensions I had installed on my other system. Most of the items I was expecting to see in the Tool menu were there, BUT there were several lines that were blank which did not do anything when I selected them.
    I was able to determine that they were related to the AdBlock Plus, downthemall! and fireftp extensions. Once I uninstalled them, the empty lines in the menu disappeared. I tried reinstalling them one by one to see if any of them would appear correctly in the menu, but adblock plus and downthemall did not. I left FireFTP installed and left adblock plus and downthemall! uninstalled.
    I then upgraded from 3.5.10 to 3.6.4 to see if all of the Tools menu items would remain. They did remain.... I then tried to install adblock plus and downthemall! but there was no change to the Tools menu, considering that in Firefox 3.5.10 I was getting empty lines in the tools menu for where I should see "Adblock Plus Preferences" and "DownThemAll! Tools".
    Not sure what is going on here, but something odd is definitely going on here. I have not tried to install any other extensions, but my gut instinct is that I will see more issues when I install new extensions.

    I had a similar problem and could not get FireFTP to show in the Tools menu and did as someone else suggested (amongst other things), I 'Disabled' the ZoneAlarm Toolbar through 'Add-ons' on the Tools menu and presto FireFTP appeared on the Tools menu after restart. Good luck

  • Bug: "WEB-INF", "web-inf" and package names

    I'm using JSPs with Struts, and as recommended in the Struts Toystore Example all of my JSPs are below the WEB-INF directory. If I compile my JSPs I get the following warnings (hundreds of them):
    Warning: package name web2d_inf._jsp._gui._documents._document does not match source file name W:\root\output\Gui\View\classes\.jsps\_WEB_2d_INF\_jsp\_gui\_documents\_document\_Preview.java
    How can I get rid of this warnings, without disabling warnings completely? I'm using JDeveloper 9.0.3.2
    Thanks

    Hello;
    It looks like this bug may pop back up?
    I am using 10g Pre on LINUX and get the error:
    Project:/home/a/jdevhome/mywork/ir2/ViewController/ViewController.jpr
    /home/a/jdevhome/mywork/ir2/ViewController/public_html/WEB-INF/untitled1.jsp
    Error:/home/a/jdevhome/mywork/ir2/ViewController/public_html/web-inf/untitled1.jsp (No such file or directory)
    It looks like web-inf is getting set to lower case somewhere.
    I know Linux is not the release for the 10g pre, this is just in case the bug is going to 'pop' up again in the final version
    Thanks
    A

  • Class and package names

    I'm novice in Java, but not novice in programming. So, it is not a problem to understand and to write simple samples, but it is still hard to create a good package structure and give good names for classes.
    For example now, I started writing simple standalone application, which will be run by cron and will communicate with 2 webservices. I will receive data(reports) from one webservice, and will send this data to another one. From the very beggining, I have a poblem about structure of roject and naming. Is it ok, to make only one class, with name for example ReportApp? Or better create one class for communicating with first service, another - with second, and main class will call methods of this classes? Also package name... I think it is good, when from package you see, that i is service, or xml.util etc. How can I show in package name that it is batch standalone application? Can somebody explain what names for classes and packages he'll use for such task, please.

    Descriptive names are nice....
    For packages, a standard method is a domain name for your company or organization:
    com.widgetsRus.service.
    com.widgetsRus.ui.
    com.widgetsRus.util.
    As for class names, just descripe what the class is for. ReportServer, ReportClient, Report (interface), AbstractReport (implements Report), StatusReport (extends AbstractReport), etc...
    As for creating a class for this and that, or separate classes, that's a design issue, but typically, it's easier to maintain things if they are kept in smaller classes with related functionality.

  • Conflit in class name and package name

    I have a small doubt. If the class name and the package name are the same in a folder, is there will be any conflict between these while using it. That means suppose a folder named 'animator' contain a package 'a' and a class name 'a'. I got any error in the 'Eclipse' tool that "a collides with a package". Is this can be solved my any change of setting in Eclipse? If then where can i change.? Can anybody help me to solve this issue??

    This works fine: just add an import to Test.java.
    import PackageName.MyClass;
    public class Test
        public static void main(String [] args)
            MyClass a = new MyClass();
    public class PackageName {}
    package PackageName;
    public class MyClass {}It's a pretty wacky, useless example, but it works.
    Plus I thought inner classes would have a dollar sign in their .class file names. When I compile this:
    public class OuterClass
        public static void main(String [] args)
            OuterClass outer = new OuterClass();
            System.out.println(outer);
        public String toString() { return "I'm an OuterClass"; }
        class InnerClass
            public String toString() { return "I'm an InnerClass"; }
    }I see two .class files: OuterClass.class and OuterClass$InnerClass.class
    Why make up examples like this? It's hard enough writing code, and it's easy to disambiguate for the compiler.

  • Class name and package names

    I read a passage from some Java Book (sorry don't have the reference handy) that
    "It is illegal for a package and a class to have the same name, so there can be no ambiguity."
    Yet I have created a class named pkgclass within a package with the very same name.
    i.e.
    package pkgclass;
    public class pkgclass {
    This compiles just fine. Have I misinterpreted the statement from the book? What is it trying to say?
    Thanks in advance.

    Here's a quote from the Java language spec:
    "The hierarchical naming structure for packages is intended to be convenient for organizing related packages in a conventional manner, but has no significance in itself other than the prohibition against a package having a subpackage with the same simple name as a top level type (�7.6) declared in that package."
    So your book was not quite correct, or maybe you just misremembered it (clearly you are typing from memory there). It isn't illegal for a package to have the same name as a class, as in your example. But it is illegal for a package to contain a subpackage and a class with the same name.

  • Slackware user - Arch install process and package management questions

    I currently am using Slackware 12 with updates.  It has become increasingly cumbersome to compile new software given the number of dependencies that also have to be compiled, and have their own dependencies compiled, etc and so on. 
    Other than the fact that the adoption of new packages is somewhat glacial, and that there is no automatic dependency resolution, I really like Slackware.  Its fast, relatively easy to configure, and easy to use.  I'm conversant in commandline-ese.
    I've been led to understand based on the Arch wiki that Arch is very similar to Slackware in its layout, but with bleeding edge packages and dependency resolution, so I would think it would be about perfect.
    However, I also understand that the install is more difficult that Slackware.  How much more so is my question.  Is it impossibly confusing and unhelpful like Debian installation was, or just slightly more difficult than Slackware or FreeBSD (both of which have very smooth installation scripts)
    Also, for packages that have to be compiled from source, are dependancies easy to satisfy from the arch repository, or do dependencies for new software have to be compiled with their dependencies.
    I'd probably just be trashing everything but /home, and doing a clean reinstall.
    Is Arch the right distro for me, or am I better off staying with Slackware?  Like I said, I really like Slackware except for the package management issues.

    I've been led to understand based on the Arch wiki that Arch is very similar to Slackware in its layout, but with bleeding edge packages and dependency resolution, so I would think it would be about perfect.
    You are right about that.
    However, I also understand that the install is more difficult that Slackware.  How much more so is my question.  Is it impossibly confusing and unhelpful like Debian installation was, or just slightly more difficult than Slackware or FreeBSD (both of which have very smooth installation scripts)
    They are quite similar, but Slackware provides more help when doing tasks like - how can I partition my harddisk and so on. But If you're comfortable with Slack's install procedure then installing Arch is much easier, just read the install guide.
    I think Arch is good for you, because currently I have both - Slackware and Arch and both suit me fine for my needs.
    Also remove all *. entries in your /home

  • How does he know ? (pacman and package names)

    i take a package from pacman cache on box 1
    i rename it from say xorg-1.4.0.pkg.tar.gz to xorg14-1.4.0.pkg.tar.gz
    i pacman -U it on box 2
    pacman on box 2 : upgrading xorg ###############33
    how does he know its xorg and not xorg14 ? (there seem to be only the actual files of the application inside)
    how do i rename the package so that pacman really understands its xorg14 and not xorg ?

    several reasons
    i hate ignorepkgs (and the trouble they can make if some dependency escapes out of what you ignorepkg'd)
    i have multiple (varying between 5 - 9) boxes that run arch + 3 family / friends boxes with arch that i am the support guy for. when a bad or unexpected update was out (dhcpcd kde4 xorg lib/include/asm etc) it was bad for most or all of the boxes - so i want a solution for all at once
    i install from scratch a lot (i naturally have skill of breaking my system to irrecoverable state and with the recent updates of arch its even more cause i swap hard drives). i prefer to have a custom mirror on my usb flash drive
    i want to be able to give this mirror easily to others too - like that guy that made the kde 3 mirror

  • Installing extensions and little circles just keeps going round and round, Help?

    When I try to install new extensions, the little circle just keeps on going and the extension doesn't install.
    When I go to extensions through the window>Extensions, it says there are three but only two work, onOne Software, which is installed on my machine, is empty.
    When advised to download the Adobe Support Adviser, I follow the link to the page, only to be told that Adobe doesn't support this anymore.
    Why can't I install any of the extension that I want and where are the onOne Software extensions?

    Please provide more details. Windows or Mac? Which version of Extension Manager (CS6, CC, 6.0.8, 7.2.1, ...)? Could you provide the download link of the extension if possible?

  • Need Hex Encoder Class and Package Name

    Hi,
    I have a requirement in which I need to convert an xml (input) into a Hex format (output). I know that there is a class called as BASE64Encoder when you want to encode a data into base64Binary format and this one is present in the sun.misc.BASE64Encoder package. Now my question is do we have some class called as HexEncoder included under some standard package (like sun.misc.HexEncoder)?
    Please provide pointers on how to solve this.
    Thanks,
    Abhishek.

    Hi,
    You get most of the encorders from here http://www.koders.com/java/fid1DEA9207865756960D16FBA292EE6534A47D3BAD.aspx
    Regards
    Ayyapparaj

  • GetProcedureColumns and package names

    Hi,
    I am trying to get the types of the stored procedure parameters using DatabaseMetaData.getProcedureColumns()
    However the procedure for which I am interested in getting the parameter types is inside a package.
    DatabaseMetaData.getProcedureColumns() returns only details of those procedures that are stand alone and not part of any package.
    My question is how do I invoke DatabaseMetaData.getProcedureColumns() so that it returns details of those stored procedures that are part of a oracle package ???
    Thanks a million.
    -ST

    anyone figure this one out ??
    i want to get all the procedure or function under all the packages as well.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by tanksali:
    Hi,
    I am trying to get the types of the stored procedure parameters using DatabaseMetaData.getProcedureColumns()
    However the procedure for which I am interested in getting the parameter types is inside a package.
    DatabaseMetaData.getProcedureColumns() returns only details of those procedures that are stand alone and not part of any package.
    My question is how do I invoke DatabaseMetaData.getProcedureColumns() so that it returns details of those stored procedures that are part of a oracle package ???
    Thanks a million.
    -ST<HR></BLOCKQUOTE>
    null

Maybe you are looking for

  • URL parameters in combination with RRI

    Hi BW people, I have two web templates. Template 2 should use the same variables of the variable screen shown for Template 1 (without showing a secons veriable screen). That is why I use a RRI. In the first template there are sevaral buttons that red

  • Preview opens previously viewed files

    I highlight just one file on my desktop and double click it to see it in Preview. I get a second image from a PDF I view yesterday. Went through Preferences in Preview, but can't seem to figure out how to get to only display one image I select. It's

  • OBIEE 10G how to rename a ibot?

    So I create this test iBot for an answer report (name is test). Now I want to rename it to like 'ibot promotion aaa'. How can I do that? I tired Manage Catalog but there is no iBots only answers and prompts I created. Thanks.

  • Apple Care after warranty expired?

    Hi all, I have a Mid 2009 MacBook Pro 13" that needs a new Logic Board. I went to the Genius Bar and they said they'd fix whatever was wrong with my laptop for $280. I can only spend about $120 on parts so that's not an option. Is it possible to buy

  • Lsmw recording does not read Scroll down

    Hi expers. This is not MM RElated question but there are more experts here..You may help us WE have mass data to introduce by VK11.WE want to use LSMW recording. But the problem; We input condition type,then we have to select key combination.But we h