Restrict unsigned jar in local java application

is it possible to restrict permission or refuse to run java application when a certain class in jar is not signed or signed by invalid entity, e.g. signed by non verisign or etc?

The Crystal Report Viewer looks good, but it seem that it's only available for Windows and Mac platforms. The reason why I am using Java is because the company I am working for has clients using both Windows and Solaris workstations.
The reporting component I am investigating needs to be integrated with our current software solution.
There are a few requirements that restrict this to an integrated solution:
We will be managing cascading and custom dynamic prompts and feeding formatted strings from that to the report parameters
Solution has to be cross platform, including Unix platforms
Interface has to be restricted so that viewing, printing, exporting can be controlled and audited by us.
An interface that I can catch hyperlink events from to trigger extra functionality in the parent program.
Thanks for the suggestion, but are there any other thick client java options for viewing a generated report?

Similar Messages

  • Restrictions on local Java applications

    Hello!
    By java 2 security model, all local Java applications run unrestricted as trusted applications by default. but there is a note about security configuration which runs local application with access-control policies applied (similar to applet's and remote application's).
    But there was not reference how this can be achieved.
    Can you pointed me out how to configure such behaviour?
    Thank you!

    Thank you, Martin!
    I did just as stated in security policy documentation, but my policy does not apply to all (in fact to any) localy started application?
    Is there a special trick to make it work?

  • Launch multiple WS apps from a local Java application?

    I should develop a local Java application that on demand launches webstart applications. Obviously it could be done with a simple HTML file, but the requirements are that launched apps be monitored by the launching app, so they need to be in the same JVM.
    I tried
    java -Djnlpx.home="C:/programfilesdir/Java Web Start"
    -classpath ".;..\classes;..\lib;..\lib\javaws.jar" Launcher
    Then Launcher.java calls com.sun.javaws.Main's main method passing the JNLP URL as a parameter.
    This launches Java Web Start and then the child app, but for some reason I ignore the Launcher app is exited without exceptions as soon as javaws starts.
    Provided that the Java WS app manager is itself a Java app that launches WS app's, any clue on how to do the same thing? Or can the source code be inspected?
    Thanks.

    I should develop a local Java application that on
    demand launches webstart applications. Obviously it
    could be done with a simple HTML file, but the
    requirements are that launched apps be monitored by
    the launching app, so they need to be in the same
    JVM.You might check out netx, a open-source JNLP client that has extra support for running multiple apps in a single JVM. It includes a SecurityManager that can catch System.exit and close the calling app's windows and resources (applet sounds, etc) instead of closing the JVM. It has other support too like separate look and feels for each app.
    It doesn't yet implement all of the spec though, but it does run most JNLP apps.
    http://jnlp.sourceforge.net/netx/

  • Viewing reports generated by BOXI in local Java application?

    Hi,
    I am developing a Java client that will act as a front-end to a BOXI R2 server and am having some problems finding a suitable way to display the generated reports in an integrated manner.
    I have been using the Web Services component to interact with the server as this seems like the easiest (only) way to run reports on demand, including setting parameters. The ReportViewerBean java applet seems like the only tool available to integrate in a client java application but I have some problems with it. The only way I have been able to get it to display a report is by getting an IReportSource from the page server. It also doesn't let me set parameters programatically and so what my app has to do at the moment is set parameters and retrieve a view using the web service, put the retrieved view back on the server in a temporary location and then retrieve the temporary view on the server using the IReportSourceFactory and feed that to the ReportViewerBean.
    This solution is no good and I need some help getting this to work.
    I have used an ActiveX CR viewer component in a separate project written in VB6 which allowed me to set parameters, data sources, ect. and run the report. It was very flexible, but unfortunately tied to windows. Is there any similar component available in java that isn't as crippled as the ReportViewerBean and allows me to just view the report I retrieved from the server?
    Thanks,
    Elliot.

    The Crystal Report Viewer looks good, but it seem that it's only available for Windows and Mac platforms. The reason why I am using Java is because the company I am working for has clients using both Windows and Solaris workstations.
    The reporting component I am investigating needs to be integrated with our current software solution.
    There are a few requirements that restrict this to an integrated solution:
    We will be managing cascading and custom dynamic prompts and feeding formatted strings from that to the report parameters
    Solution has to be cross platform, including Unix platforms
    Interface has to be restricted so that viewing, printing, exporting can be controlled and audited by us.
    An interface that I can catch hyperlink events from to trigger extra functionality in the parent program.
    Thanks for the suggestion, but are there any other thick client java options for viewing a generated report?

  • Opening a binary data file with a local java application from a weblink...

    I don't know if this is the right forum for my query, but I would like to be able to click on a data file from a download link on a webpage and be able to have the file "open" into the java application that processes the particular file (as opposed to selecting the "save to disk" option or having the browser display a bunch of funky characters). If the application is not already running, have an instance start up and process the data file and display the information. What steps would I need to take to get this to happen? The application is executed in a windows environment through executing a .bat file and not an executable .jar file. Any thoughts? TIA!

    This is entirely a matter of configuring the Windows file associations so that files with that extension are started using your designated process. Depending on the particulars you may be able to establish the association from the context (right-click) menu, or you may need to use Folder Options rom the Control Panel.
    In any case, this is a not a Java question, but Windows; if further help is needed you should go to a Windows help site.

  • Making Executable Jar file using java Application

    Following Program creates the jar file at specified location. but, I wonder why this file does not execute on double clicking on it, in spite of that the Manifest file contain correct main class file name
    //MakJar.java
    import java.io.*;
    public class MakJar
    public static void main(String[] args)throws IOException{
    Process p;
    String str="D:\\Himesh\\JFiles";
    try {
    BufferedWriter out = new BufferedWriter(new FileWriter(str+"\\mainClass.txt"));
    out.write("Main-Class: TestFrame\n");
    out.close();
    } catch (IOException e) {
    try
         p=Runtime.getRuntime().exec("cmd /c D:\\Java6\\jdk1.6.0\\bin\\javac.exe "+str+"\\TestFrame.java");
         p=Runtime.getRuntime().exec("cmd /c D:\\Java6\\jdk1.6.0\\bin\\jar cvmf "+str+"\\mainClass.txt "+str+"\\Demo.jar "+str+"\\*.class");
    catch(IOException e)
    System.err.println("Error on exec() method");
    e.printStackTrace();
    }

    Sir,
    On execute the jar using a "java -jar. . ." command. it gives the error--
    "Exception in thread "main" java.lang.NoClassDefFoundError : TestFrame"
    On Extracting the files from jar file made by the java program,i found that the manifist file ( containing the name of main class) and t the class file are included in the jar file.
    But if I make the jar file manually it works perfectly.I have even reinstalled the java but the problem persists
    Same thing happen if i use MS-DOS batch file.
    ??????If i put the batch file in the same directory and execute it The resulting jar file works,But
    ??????if the batch file is executed from outside the directory The resulting jar file fails execute.
    what should i do???

  • Making jar file for java application with third party (Crystal Report)

    Hi all,
    I'm writing a java program that integrate with Crystal Report, I can run it in JBuilder fine, but when I try to make a jar file with JBuilder and run it, it either doesn't work or give me error.
    Case 1: If i only include the "dependencies", the program run but it woun't call the report when I open it. It give me the following error:
    com.businessobjects.reports.sdk.JRCCommunicationAdapter
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: com.businessobjects.reports.sdk.JRCCommunicationAdapter---- Error code:-2147215357 Error code name:internal
         com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(ILjava.lang.String;)V(Unknown Source)
         com.crystaldecisions.proxy.remoteagent.z.a(Ljava.lang.String;)Lcom.crystaldecisions.proxy.remoteagent.ICommunicationAdapter;(Unknown Source)
         com.crystaldecisions.sdk.occa.report.application.ReportAppSession.int()V(Unknown Source)
         com.crystaldecisions.sdk.occa.report.application.ReportAppSession.initialize()V(Unknown Source)
         com.crystaldecisions.sdk.occa.report.application.ClientDocument.for()V(Unknown Source)
         com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.for()V(Unknown Source)
         com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(Ljava.lang.Object;I)V(Unknown Source)
         com.crystaldecisions.reports.sdk.ReportClientDocument.open(Ljava.lang.Object;I)V(Unknown Source)
         GOV.NE.REVENUE.LB775.CRYSTALREPORT.JRCViewReport.launchApplication(JRCViewReport.java:43)
         GOV.NE.REVENUE.LB775.LB775$5.actionPerformed(LB775.java:1114)</message>
    case 2: if I include the "dependence and resources" when create jar file, then the program won't run. It gives me a message:
    Cannot find main class. Program will exit.
    But I do have the manifest.mf file that contain the main class.
    Thank you very much for any help.

    Hello, I have the same problem, did you solved it?
    Thanks

  • Creating a Jar of my java application

    Hi All,
    I have written an application that does a file transfer (between two locations) and then creates entries into the DB.I use MSSQL and its related Jars (msbase, msutil, mssqlserver) to build the application in eclipse. I also use log4j to help me debug the application. The application works out of a p.s.v.m block which is the entry point to my java app. The application runs fine out of my workspace(in eclipse) but does not when i export the application as a jar and try to run the jar using the command java -jar Job.jarThe stack trace says that it cannot find the class for which the implementation is provided by the mssql related jars (the 3 jars that i have mentioned above). When i see the built jar file, the 3 jars are not included but rather a reference is used. To correct this, i added the 3 jars (leave log4j) inside my workspace (inside a package) and re-jarred the app. Even then i get the CNFE. Where exactly am i making a mistake?
    i have been trying to get some help but not able to, if someone can point me to a good url or even a simple example of this, i'd appreciate it very much.
    -D
    Edited by: dilip_jsf on Oct 29, 2007 11:59 AM
    see my prev post here: i dont intend to be rude, i consider myself an ignoramus w.r.t Java.
    http://forum.java.sun.com/thread.jspa?threadID=5228914

    Is that the tutorial link? Also i have done as you said, i added the following in my Manifest.mf file:
    Manifest-Version: 1.0
    Main-Class: process.TransferFiles
    Class-Path:  lib/msbase.jar lib/mssqlserver.jar lib/msutil.jar log4j.propertiesI created this file inside a folder named META-INF. After that when i jar my app, i specify eclipse to use this manifest file.
    This works except for the log4j jar which throws a CNFE. The jar does not have the 3 sql jars inside it and only has the log4j (which i have excluded in my build path). It works only because i have the 3 sql related jars added to my system CLASSPATH variable. I dont have log4j there. Could it be because of this that i am not able to do logging but do the DB related tasks?
    Also, i would actually like to read up more on working with core java concepts. Where can i start?
    -D
    Any help on this anyone?
    Edited by: dilip_jsf on Oct 30, 2007 6:22 AM

  • How to run a jar file using Java application.

    Hi all,
    I know that jar file can run using the following command, using the command prompt.
    java -jar jar-fileBut I don't know how to run that command through a Java code. Hope it's clear to you.
    So can you please explain how can I do it.
    Thanks,
    itsjava

    rayon.m wrote:
    The solution given by ropp appears to have nothing to do with what you asked about.Ok sir, I got the point.
    I've try a test as follows. But it doesn't give any output. Even not an exception.
            try {
                String[] temp = new String[]{"java", " -jar", " MainApp.jar"};
                Runtime rt = Runtime.getRuntime();
                Process proc = rt.exec(temp);
                int exitVal = proc.waitFor();
                System.out.println("ExitValue: " + exitVal);
                System.out.println("Temp_Values");
            catch(InterruptedException ex) {
                System.out.println(ex.getMessage());
            catch (IOException ex) {
                System.out.println(ex.getMessage());
            }I've debug and see, but the exitValue is even not exist at run time. Can you tell me where I'm going wrong.

  • Can a unsigned jar file access the tmpdir (java.io.tmpdir)?

    Hello, according to the JNLP tutor, a signed jar file can access the local file system, but a unsigned one can not. My question is, can a unsigned jar file access the temp directory (the system property java.io.tmpdir)? I think the temp directory should be accessible even though it is part of the local file system.
    Thanks,
    LyLi

    no - unsigned application has no read/write access to the temp dir, but you can use the jnlp api to read and write files with the users permssion.
    see: http://java.sun.com/javase/6/docs/jre/api/javaws/jnlp/index.html for FileOpenService, FileSaveService, and ExtendedService.
    /Andy

  • Beehive Conferencing Java-based Client Error: Cannot grant permissions to unsigned jars

    Hi,
    When I start a Beehive online web conference via the Java-based client on Ubuntu 12.04, I get the following error:
    net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize application.
        at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:778)
        at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:552)
        at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:889)
    Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Application Error: Cannot grant permissions to unsigned jars. Application requested security permissions, but jars are not signed.
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.setSecurity(JNLPClassLoader.java:289)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:209)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:323)
        at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:770)
        ... 2 more
    Caused by:
    net.sourceforge.jnlp.LaunchException: Fatal: Application Error: Cannot grant permissions to unsigned jars. Application requested security permissions, but jars are not signed.
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.setSecurity(JNLPClassLoader.java:289)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:209)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:323)
        at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:770)
        at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:552)
        at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:889)
    Thanks for your help

    We have an HTTP/HTTPS conflict when downloading the JavaFX client that we have not yet been able to resolve without breaking something else :-)
    We recommend you use the downloadable client - available from the https://beehiveonline.oracle.com/bcentral/action?page=downloadlanding&appId=Oracle+Beehive+Conferencing+Bootstrap%7Cwind…

  • Deployment Issues, Different  Jars for Diff Java in one application.

    HI,
    I need to put classpath (Jars) for my WEB-INF/classes. Different Jars for Diff files in one application.
    The problem is , for one ofmy application, the lib files are x.jar and y.jar , x is older than y but have same
    lib files. in x and y, there is one class , r.java , which have a method method1(). whey they are doing modifications in y.jar , the r.java has changed to new vertion, the method method1() they re-written the body.
    My application have 5 java files, in which 2 files uses r.java imported from the x.jar earlier.
    Now we need to use y.jar because , the y.jar have more files added with good futures. But the earlier 2 files are giving exception if i use y.jar.
    I need solution for this. how can i put classpath for the 2 files to use the x.jar and other files to use y.jar in the same application.
    I am using a Tomcat 4 server. only Servlets, JSPs I am using.
    Thank you,
    Kiran

    I may be missing something here, is y.jar a newer version of x.jar? And if it is do you need x.jar at all? Are there classes in x.jar that do not exist in y.jar? Can you modify your application to provide the same functionality and only use y.jar?

  • Returning an array type from a local method in Web Dynpro Java application

    Hi,
    In my project, we have a requirement to display 18 rolling months along with the year, starting from current month.
    How I am going to approach is that I will get the system date and get the current month and send the month and year value to a local method which will return 18 rolling months along with the year.
    But, when I tried to create a new method there is no option to return an array type. It was greyed out.
    So, we can not return an array type from a method from Web Dynpro for Java application?
    If so, what is the alternative and how am I going to achieve it?
    I will appreciate your help!
    Regards
    Ram

    HI
    You can create new methods in
      //@@begin others
      private ArrayList MyMethod(){
           // ** Put your code here
           return new ArrayList();
      //@@end
    Other option are create a context node with cardinality 0...n with one or more attributes, and in your method create the needed registers into this node. To read this values, you only need to read your context node.
    Best regards
    Edited by: Xavier Aranda on Dec 2, 2010 9:41 AM

  • How to call a java application in a jar which is in a war file of a ear ?

    So sorry to cross post, but no response in other topics.....
    Please help!
    I have a Ear file which contains a war file.
    xx.ear/META-INF
    xx.ear/YY.war
    and the YY.war has the following structure:
    YY.war/META-INF
    YY.war/WEB-INF
    YY.war/WEB-INF/classes
    YY.war/WEB-INF/classes/com/
    YY.war/WEB-INF/classes/com/mycompany/
    YY.war/WEB-INF/classes/com/mycompany/MyClass.class
    MyClass.class is a java application which has a main method.
    how can I call this MyClass applicaiton from the xx.ear??
    java -???? com.mycompany.MyClass ??
    Please help because I have a Unix cron job need to access this class externally outside AppServer. Thx!!

    an ear file is a standard jar with a different extension. You may
    be able to get away with just adding a manifest file to it that
    specifies the main class (make it an executable jar with a different
    extension).
    I don't know if this will handle the nested war file though. It may.
    matfud

  • Add jar file to forms application standard java library

    Overall Problem
    I created a jar file using JDeveloper to be loaded as a bean in forms builder. But the jar file ended up being really large because I had to add some standard libraries that JDeveloper knew about but Forms didn't to this jar file, it takes forever to load in my forms application.
    Background
    Jdeveloper has a drop down list of standard libraries that aren't commonly used that a developer can have included/referenced into their java project.
    Oracle Forms Library
    One of the standard libraries in JDeveloper that can be referenced when compiling a project is the Oracle Forms library. I have to reference this library in my compilation of my java project in JDeveloper because some of the java code in this project requires the Oracle Forms library. When the jar file is created in JDeveloper the Oracle Forms Library isn't actuaally physically located anywhere in the jar file that is produced for deployment. But the jar file runs perfectly in my forms application. Forms builder and the forms application server seems to already know about the Oracle Forms library.
    Java Media Framework Library
    There is another standard library listed in JDevelopers drop down list that I recently chose to use in my Java Application, the Java Media Framework library. But my forms application couldn't find any of the Java Media Framework classes when it launched the jar file that was deployed from JDeveloper. Obviously the classes wern't physically located in the jar file I created, because I figured that the forms application server/forms builder would already know about about this standard library that JDeveloper knew about.
    Not very effective Solution
    So I physically put/included the whole Java Media Framework Library into my jar file and then my form launched fine. But it now takes forever to load. How can I add the Java Media Frame work library jar files as one of the standard libraries that the forms builder and application server already sees (Like the Oracle Forms Library) without having to put the library in the forms/java folder and wait for the this jar file to download to the user's cache?
    Side note: The Java Media Framework Library is allowing the ability to launch video from my form. Very useful tool!!! So it would be good if forms had this already added as a standard library like it is in JDeveloper. But I only see the ability to reference this library in DS 10gR2 for JDeveloper.
    Thanks,
    Michelle

    Yes I have successfully been able to run a javabean application that uses the Java Media Framework methods within a forms module. The video seems to play and interact normally in the forms environment (launched from a DS or the AS).
    Basic Requirements
    Develop the java application functionality look and feel, including adding funtionality calls to the JMF library where needed.
    Develop an Oracle Forms Interface wrapper that will be the initial class called from the bean area, to hande any communication between the bean and the form.
    Configure the deployment of the jar to physically include all the needed classes from the JMF library.
    Sign the jar file and make sure it is placed in the forms/java folder and referenced in the appropriate forms configuration files.
    Depending on the type of video that the will be played certain .dll files might need to be added to the users system folder. Using H264 (.mov) should work fine without any extra .dlls.
    Thanks,
    Michelle
    Message was edited by:
    mpoore

Maybe you are looking for

  • BI PUBLISHER : not able to select 'all' from the menu as parameter

    Hi , I have created a report using a SQL query . i created a list of values using the following sql query : select     EDM_TRD_HDR.TRD_ID as TRD_ID from     MUREXEDM.EDM_TRD_HDR and selected this in the menu settings in parameters . i checked on 'can

  • DVD plays on one TV DVD player, but not on another

    I made a video for a client's 50th b-day party, and burned it with DVDSP 3. I am using Verbatim, DatalifePlus 16x media. It plays fine on my G5 and my TV's DVD player, as well as on my clients computer, but not on his TV's DVD player. I am not sure w

  • ICloud inaccesable? 10/16/2012 @ 11:00 CST

    I can sign on to iCloud but when I click on iWork, Calendar, or any other apps I get the message: "There was a problem loading the application" I am using my MapBook Pro on a public library network.  I have tried both Safari and Firefox. Anyone else

  • What is the use P type variable in ABAP?

    ex: data <variable name > type p decimals 2. here what is the use of declaring it to p type. what is the difference between p type and float type.

  • Language in messaging

    Although my language is set on " Dutch", by writing a message nearly every word is underscored, indicating that the word is written wrong. How can I solve this?