JRE with RDS
Does JRE of a machine runs while accessing this machine Remotely?
Any Idea?
Why I m asking?
I wanted to install JRE 1.4.2_14 and I have unsinstalled JRE 1.4.2_06 and JRE 1.4.2_06 on the same machine having windows 2000 proffessional.
Still I have not Installed JRE 1.4.2_14 due to error!......... displaying JRE is in use please cloes running JRE.
Will it effect the users accessing this machine? And can I able to install JRE 1.4.2_14 with out any problem. Does it need restart of the machine after installation.
please guide me.............
amar
if (wantsToCompilePrograms) {
downloadJDK();
if (wantsToRunPrograms) {
downloadJRE();
} else {
assert false : "Why would you want to compile a program but never run it?";
} else {
if (wantsToRunPrograms) {
downloadJRE();
} else {
// no downloads needed
}As you can see, there are three logical possibilities for download choices:
(1) JDK and JRE
(2) JRE only
(3) neither JDK nor JRE
and those are exactly the choices you getcal possibilities for download choices:
(1) JDK and JRE
(2) JRE only
(3) neither JDK nor JRE
and those are exactly the choices you get
Similar Messages
-
Hi,
I have a problem with rds on exadata. After upgrading to uek kernel and patching to cell 11.2.3.3.0, I get following error:
Aug 18 16:17:36 exadb01 kernel: RDS/tcp: send to 192.168.10.5 returned -32, disconnecting and reconnecting
Aug 18 16:17:36 exadb01 kernel: RDS/tcp: send to 192.168.10.5 returned -32, disconnecting and reconnecting
Aug 18 16:17:36 exadb01 kernel: RDS/IB: connection <192.168.10.9,192.168.10.5,4> dropped
Aug 18 16:17:36 exadb01 kernel: RDS/IB: connection <192.168.10.9,192.168.10.5,0> dropped
Aug 18 16:17:36 exadb01 kernel: RDS/IB: connection <192.168.10.9,192.168.10.5,0> dropped
Aug 18 16:17:36 exadb01 kernel: RDS/IB: connection <192.168.10.9,192.168.10.5,4> dropped
Aug 18 16:17:36 exadb01 kernel: RDS/IB: connection <192.168.10.9,192.168.10.5,0> dropped
Aug 18 16:17:36 exadb01 kernel: RDS/IB: connection <192.168.10.9,192.168.10.5,0> dropped
Aug 18 16:17:36 exadb01 kernel: RDS/IB: connection <192.168.10.9,192.168.10.5,4> dropped
Aug 18 16:17:36 exadb01 kernel: RDS/IB: connection <192.168.10.9,192.168.10.5,0> dropped
Aug 18 16:17:36 exadb01 kernel: BUG: scheduling while atomic: kworker/u:0/5/0x10000200
Aug 18 16:17:36 exadb01 kernel: Modules linked in: rds_rdma rds_tcp rds hidp rfkill lockd sunrpc ib_iser rdma_cm ib_cm iw_cm ib_sa ib_mad ib_core ib_addr video sbs sbshc hed acpi_memhotplug acpi_ipmi ipmi_msghandler lp snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device serio_raw snd_pcm_oss snd_mixer_oss snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm snd_timer drm snd parport_pc parport soundcore snd_page_alloc e1000 pata_acpi i2c_piix4 pcspkr i2c_core ata_generic dm_snapshot dm_zero dm_mirror dm_region_hash dm_log dm_mod ata_piix sd_mod crc_t10dif be2iscsi iscsi_boot_sysfs bnx2i cnic uio ipv6 cxgb3i libcxgbi cxgb3 mdio sg sr_mod cdrom iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi mpt2sas scsi_transport_sas raid_class ahci libahci ext3 jbd mbcache [last unloaded: rds]
Aug 18 16:17:36 exadb01 kernel: Pid: 5, comm: kworker/u:0 Not tainted 2.6.39-400.128.17.el5uek #1
Aug 18 16:17:36 exadb01 kernel: Call Trace:
Aug 18 16:17:36 exadb01 kernel: [<ffffffff8105dc16>] __schedule_bug+0x66/0x70
Aug 18 16:17:36 exadb01 kernel: [<ffffffff81504a15>] __schedule+0x645/0x6d0
Aug 18 16:17:36 exadb01 kernel: [<ffffffff8148cb58>] ? tcp_write_xmit+0x238/0x2e0
Aug 18 16:17:36 exadb01 kernel: [<ffffffffa02afee8>] ? e1000_tx_map+0x2b8/0x450 [e1000]
Aug 18 16:17:36 exadb01 kernel: [<ffffffff8150704e>] ? common_interrupt+0xe/0x13
Aug 18 16:17:36 exadb01 kernel: [<ffffffff8106a1ca>] __cond_resched+0x2a/0x40
Aug 18 16:17:36 exadb01 kernel: [<ffffffff81504b2f>] _cond_resched+0x2f/0x40
Aug 18 16:17:36 exadb01 kernel: [<ffffffff8147e505>] do_tcp_setsockopt+0x215/0x700
Aug 18 16:17:36 exadb01 kernel: [<ffffffff8143b410>] ? dev_hard_start_xmit+0x200/0x530
Aug 18 16:17:36 exadb01 kernel: [<ffffffff81506b3e>] ? _raw_spin_lock+0xe/0x20
Aug 18 16:17:36 exadb01 kernel: [<ffffffff81457524>] ? sch_direct_xmit+0x84/0x1d0
Aug 18 16:17:36 exadb01 kernel: [<ffffffff812595d9>] ? put_dec+0x59/0x60
Aug 18 16:17:36 exadb01 kernel: [<ffffffff81259918>] ? number+0x338/0x370
Aug 18 16:17:36 exadb01 kernel: [<ffffffff81475496>] ? ip_finish_output+0x146/0x320
Aug 18 16:17:36 exadb01 kernel: [<ffffffff81041009>] ? default_spin_lock_flags+0x9/0x10
Aug 18 16:17:36 exadb01 kernel: [<ffffffff81506b84>] ? _raw_spin_lock_irqsave+0x34/0x50
Aug 18 16:17:36 exadb01 kernel: [<ffffffff8106fdc8>] ? console_unlock+0xd8/0x110
Aug 18 16:17:36 exadb01 kernel: [<ffffffff8147ea4a>] tcp_setsockopt+0x2a/0x40
Aug 18 16:17:36 exadb01 kernel: [<ffffffff814276f4>] sock_common_setsockopt+0x14/0x20
Aug 18 16:17:36 exadb01 kernel: [<ffffffffa01e949e>] rds_tcp_cork+0x4e/0x60 [rds_tcp]
Aug 18 16:17:36 exadb01 kernel: [<ffffffffa01e94ce>] rds_tcp_xmit_prepare+0x1e/0x20 [rds_tcp]
Aug 18 16:17:36 exadb01 kernel: [<ffffffffa0616ec4>] rds_send_xmit+0x94/0x730 [rds]
Aug 18 16:17:36 exadb01 kernel: [<ffffffffa06146b3>] ? rds_message_alloc+0x23/0x90 [rds]
Aug 18 16:17:36 exadb01 kernel: [<ffffffff81041009>] ? default_spin_lock_flags+0x9/0x10
Aug 18 16:17:36 exadb01 kernel: [<ffffffffa061762c>] rds_send_hb+0xcc/0x120 [rds]
Aug 18 16:17:36 exadb01 kernel: [<ffffffff81041009>] ? default_spin_lock_flags+0x9/0x10
Aug 18 16:17:36 exadb01 kernel: [<ffffffffa0613179>] rds_conn_probe_lanes+0x69/0x80 [rds]
Aug 18 16:17:36 exadb01 kernel: [<ffffffffa06132c8>] rds_conn_drop+0x138/0x1f0 [rds]
Aug 18 16:17:36 exadb01 kernel: [<ffffffff81428180>] ? lock_sock_nested+0x60/0x60
Aug 18 16:17:36 exadb01 kernel: [<ffffffffa01e87ac>] rds_tcp_state_change+0x7c/0x90 [rds_tcp]
Aug 18 16:17:36 exadb01 kernel: [<ffffffff8147c131>] tcp_done+0x51/0x80
Aug 18 16:17:36 exadb01 kernel: [<ffffffff8148404e>] tcp_reset+0x3e/0x70
Aug 18 16:17:36 exadb01 kernel: [<ffffffff81484258>] tcp_validate_incoming+0x1d8/0x220
Aug 18 16:17:36 exadb01 kernel: [<ffffffff814906ac>] ? tcp_v4_inbound_md5_hash+0x6c/0x1b0
Aug 18 16:17:36 exadb01 kernel: [<ffffffff814890a7>] tcp_rcv_state_process+0x47/0x570
Can you help me?
Thank you,
Regards,Hello 976232,
This type of issue would definitely be Oracle Support territory, so I'd be definitely checking in with them. A few clarifying questions you can expect to be asked:
- What is the impact on your system because of this error message
- How often does it happen
- Can you trigger it on demand?
Marc -
How do I bundle a jre with an RCP appl on Mac OSX
Hi,
We are making an RCP appl with kepler.
I want to ship the jre's with the appl.
On windows I can just ship a jre dir in the root, no problem.
On the Mac (10.8.4) it does not seem to work, at least not in an obvious way.
I downloaded the latest 1.7 jre (25) for Mac from the oracle website.
I tried the following:
unzip it and put it in a jre dir in the root => not used, falling back to system jre
same and put '-vm' in the ini => error saying 1.6.0_51 is not supported (huh? I do not even have 1.6)
I tried exporting an appl (with bundled jre) from eclipse using the product definition. That works but when I look at the generated appl tree I see a jre dir with another jre dir inside it ??? The inner jre dir seems to be a (partial) duplicate of the outer one.
Ok, sort of at least, now I tried to copy my downloaded jre dir inside itself. That works, but if I remove the contents of one of them it does not work anymore and I do not really want to ship a double jre.
Can anybody shed some light here?
What is the optimal way to bundle a jre with an RCP application on Mac OSX?
Thanks,
TomI have done this within our product and have it working. It's tricky because if you're using Maven to build, OS X's JRE symlink's libjvm.dylib - which Java's unzip invariably screws up.
I was only able to get this to work by using Tycho, as the app export within the PDE is just plain broken (and seemingly unmaintained). This bug has been there for quite some time - I don't have any faith in it ever getting fixed, regardless of whatever bugzilla says.
If you're building RCP apps for distribution - you should probably consider using Tycho anyways; admittedly there's a lot of BS that comes with it, but it's the only seemingly straightforward way to build and package an RCP app in a headless manner for continuous integration. Buckminster is supposedly also a solution - but it has less information and support than Tycho - so YMMV.
Anyways back to your problem. Using Tycho with some custom maven magic, I was able to solve this. Essentially I downloaded the JRE from Oracle, and uploaded to our Artifactory so I could reference it using maven coordinates. I unpack that tar.gz package into the OS X distribution directory and place the package under the <your app name>.app/jre. Because of the symlink munging - you have to go and fix that, so remove the existing zero byte libjvm.dylib and relink it using ant exec. Now that you have a good JVM, you need to modify the config.ini to use the right JRE. Unfortunately you can only build this on OS X or Linux - Windows is SOL unless you can find a way to use Cygwin or equivalent. Since I'm doing this outside of Tycho's archiving phase (and theres not apparently way to slip my changes in between), I have to recreate the OS X archive.
Hopefully this helps you solve your problem... I beat my head against the wall trying to fix this for several weeks trying to find a working solution as the error reporting is completely incorrect.
Anyways, good luck!
<profiles>
<profile>
<id>fix-jre-archives</id>
<activation>
<os><family>unix</family></os>
</activation>
<dependencies>
<dependency>
<groupId>com.sri</groupId>
<artifactId>oracle-jre</artifactId>
<version>${distrib.oracle-jre.version}</version>
<classifier>macosx-x64</classifier>
<type>tar.gz</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<id>unpack-mac-jre</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.sri</groupId>
<artifactId>oracle-jre</artifactId>
<version>${distrib.oracle-jre.version}</version>
<classifier>macosx-x64</classifier>
<type>tar.gz</type>
<outputDirectory>${distrib.macosx.x86_64}</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>fix-jre-mac</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<mkdir dir="${distrib.macosx.x86_64}/${distrib.bin.name}.app"/>
<move file="${distrib.macosx.x86_64}/jre${distrib.jre.version}.jre" tofile="${distrib.macosx.x86_64}/${distrib.bin.name}.app/jre"/>
<symlink action="delete" link="${distrib.macosx.x86_64}/${distrib.bin.name}.app/jre/Contents/MacOS/libjli.dylib" />
<symlink link="${distrib.macosx.x86_64}/${distrib.bin.name}.app/jre/Contents/MacOS/libjli.dylib"
resource="../Home/lib/jli/libjli.dylib" overwrite="true"/>
<concat destfile="${distrib.macosx.x86_64}/${distrib.bin.name}.app/Contents/MacOS/${distrib.bin.name}_temp.ini" fixlastline="yes">
<header filtering="no" trimleading="yes">
-vm
../../jre/Contents/Home/lib/server/libjvm.dylib
</header>
<fileset file="${distrib.macosx.x86_64}/${distrib.bin.name}.app/Contents/MacOS/${distrib.bin.name}.ini"/>
</concat>
<move file="${distrib.macosx.x86_64}/${distrib.bin.name}.app/Contents/MacOS/${distrib.bin.name}.ini"
tofile="${distrib.macosx.x86_64}/${distrib.bin.name}.app/Contents/MacOS/${distrib.bin.name}_bak.ini" />
<move file="${distrib.macosx.x86_64}/${distrib.bin.name}.app/Contents/MacOS/${distrib.bin.name}_temp.ini"
tofile="${distrib.macosx.x86_64}/${distrib.bin.name}.app/Contents/MacOS/${distrib.bin.name}.ini" />
</target>
</configuration>
</execution>
<execution>
<id>remove-director-archive-mac</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<delete file="${archive.macosx.x86_64}" />
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.3.1</version>
<executions>
<execution>
<id>manual-archive-mac</id>
<phase>pre-integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>zip</executable>
<workingDirectory>${distrib.macosx.x86_64}/..</workingDirectory>
<arguments>
<argument>-r</argument>
<argument>-q</argument>
<argument>-dd</argument>
<argument>--symlinks</argument>
<argument>${archive.macosx.x86_64}</argument>
<argument>${distrib.root}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles> -
Moving user profiles from Server 2012 with RDS services to User profile disks Server 2012R2
Hello i have a question about moving my C:\users profiles.
My current settings on the servers are:
AD-Server 2012
SQL-Server 2012
TS- server with RDS roles (RDwebacces, RDs broker, RD session host) 2012
everything about user profiles is now in C:\Users
My new settings for the server will be:
AD-ActiveDirectory - server
SQL-Server
TS1- RDS (RDwebacces, broker, RDS server group management) 2012R2 (I have enabeld userProfileDisks to Filesistem server)
TS2- RDS(Session host) load balance 2012R2
TS3- RDS (Session host) load balance 2012
FileSistem - server ( here i will have on E: partition the new functionality UserProfileDisks) 2012R2
So is there a way to move profiles from TS - C:\Users to FileSistem - E:\UserProfileDisks
I am new to this so any idea wil be helpful.Hi,
If the UPD is configured on the server which holds existing user profiles, just select the option:
store all user settings and data inside the profile disk.
Since you are moving user profiles between different servers, then user profile contents need to be migrated manually.
Best Regards,
Amy
Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
How to Include JRE with our Setup Package
please help me,
i have created one swing application.i successfully created setup.exe using installsheild 11.It is working in my machine.when i run this in another machine .it is not working.iam using some external jar also in the appln.i put that jars into the jre/lib/ext in destination machine's directory then it works.
i want to include JRE with my setup package(first the setup should find whether the jre is installed or not ,if not it must insall JRE and put my external jar files into jre/lib/ext directory in destination machine then only my appln should insall).please give me a solution for thisWhat?!! It isn't considered legal to access a
root-level class from a higher level package?Well it's not now because your code won't compile, but
prior to 1.4 you could. I think the JLS has been
updated to say you can't import from the unnamed
namespace.Hmm! I must have missed that bit (not that I read it in any great detail, anyway!). I suppose it forces you to use packages, which is a good thing, IMHO.
What I was wondering about was, is the directory structure of classes strictly necessary, given that a class contains information on its package anyway? I know some IDEs don't require the source files to be in the right directory - they will check on the package statement, and locate the class file accordingly - but is it absolutely necessary for class files to be located according to their directory structure? I know the JLS says they have to be, but could the JLS be relaxed on this point, without breaking anything?
RObin -
Attn: Sun. Can we distribute the JRE with a program we write?
I'm trying to find out whether it's legal to distribute the JRE with a program I write. If you look at the license agreement when you download the JRE, first it has the regular license agreement, which says that you can't. But then it has the "supplemental" license agreement (and it says that this "modifies" the regular license agreement). In section 2 of the supplemental license agreement, it quite clearly states that you can as long as you don't modify it and you include some little messages in your documentation.
So I'm hoping to get an answer from someone who actually works for Sun. It seems pretty clear to me that we ARE allowed to distribute the JRE with a program, but people keep sending me emails when I tell them about it - saying things like "You can't program in Java because you can't distribute it."
What I want to do is have an installation program that installs my game and then installs Java (with Sun's JRE installer - this is included ONLY so that it can run my game, as stated in the supplemental license agreement). I should also mention that I do actually intend to SELL this program, so if that's a problem, please say so. Anyways, could someone from Sun tell me whether this is allowed or not? I don't want to break the law.
- Steve FletcherThe JRE includes a readme file that explicitly states that distribution is permissible, given certain conditions. In particular, look at the 1st paragraph below:
Reproduced here:
README
Java(TM) 2 Runtime Environment, Standard Edition
Version 1.4.1
The Java(TM) 2 Runtime Environment is intended for software developers
and vendors to redistribute with their applications.
The Java 2 Runtime Environment contains the Java virtual machine,
runtime class libraries, and Java application launcher that are
necessary to run programs written in the Java programming language.
It is not a development environment and does not contain development
tools such as compilers or debuggers. For development tools, see the
Java 2 SDK, Standard Edition.
=======================================================================
Deploying Applications with the Java 2 Runtime Environment
=======================================================================
When you deploy an application written in the Java programming
language, your software bundle will probably consist of the following
parts:
Your own class, resource, and data files.
A runtime environment.
An installation procedure or program.
You already have the first part, of course. The remainder of this
document covers the other two parts. See also the Notes for Developers
page on the Java Software website:
http://java.sun.com/j2se/1.4.1/runtime.html
Runtime Environment
To run your application, a user needs the Java 2 Runtime Environment,
which is freely available from Sun for application developers to
redistribute.
The final step in the deployment process occurs when the software is
installed on individual user system. Installation consists of copying
software onto the user's system, then configuring the user's system
to support that software. You should ensure that your installation
procedure does not overwrite existing JRE installations, as they may
be required by other applications.
=======================================================================
Redistribution of the Java 2 Runtime Environment
=======================================================================
The term "vendors" used here refers to licensees, developers, and
independent software vendors (ISVs) who license and distribute the
Java 2 Runtime Environment with their programs.
Vendors must follow the terms of the Java 2 Runtime Environment Binary
Code License agreement.
Required vs. Optional Files
The files that make up the Java 2 Runtime Environment are divided into
two categories: required and optional. Optional files may be excluded
from redistributions of the Java 2 Runtime Environment at the
licensee's discretion.
The following section contains a list of the files and directories that
may optionally be omitted from redistributions with the Java 2 Runtime
Environment. All files not in these lists of optional files must be
included in redistributions of the runtime environment.
Optional Files and Directories
The following files may be optionally excluded from redistributions:
lib/charsets.jar
Character conversion classes
jre/lib/ext/
sunjce_provider.jar - the SunJCE provider for Java
Cryptography APIs
localedata.jar - contains many of the resources
needed for non US English locales
ldapsec.jar - contains security features supported
by the LDAP service provider
dnsns.jar - for the InetAddress wrapper of JNDI DNS provider
bin/rmid
Java RMI Activation System Daemon
bin/rmiregistry
Java Remote Object Registry
bin/tnameserv
Java IDL Name Server
bin/keytool
Key and Certificate Management Tool
bin/kinit and jre/bin/kinit
Used to obtain and cache Kerberos ticket-granting tickets
bin/klist and jre/bin/klist
Kerberos display entries in credentials cache and keytab
bin/ktab and jre/bin/ktab
Kerberos key table manager
bin/policytool
Policy File Creation and Management Tool
bin/orbd
Object Request Broker Daemon
bin/servertool
Java IDL Server Tool
In addition, the Java Web Start product may be excluded from
redistributions. Depending on the platform, the Java Web Start
product is contained in a file named as follows. The actual
product version number would replace the <version number> notation.
javaws-<version number>-solaris-sparc-i.zip
javaws-<version number>-solaris-i586-i.zip
javaws-<version number>-linux-i586-i.zip
javaws-<version number>-windows-i586-i.exe
Redistribution of Java 2 SDK Files
The limited set of files from the SDK listed below may be included in
vendor redistributions of the Java 2 Runtime Environment. All paths
are relative to the top-level directory of the SDK.
- jre/lib/cmm/PYCC.pf
Color profile. This file is required only if one wishes to
convert between the PYCC color space and another color space.
- All .ttf font files in the jre/lib/fonts directory. Note that the
LucidaSansRegular.ttf font is already contained in the Java 2
Runtime Environment, so there is no need to bring that file over
from the SDK.
- jre/lib/audio/soundbank.gm
This MIDI soundbank is present in the Java 2 SDK, but it has
been removed from the Java 2 Runtime Environment in order to
reduce the size of the Runtime Environment's download bundle.
However, a soundbank file is necessary for MIDI playback, and
therefore the SDK's soundbank.gm file may be included in
redistributions of the Runtime Environment at the vendor's
discretion. Several versions of enhanced MIDI soundbanks are
available from the Java Sound web site:
http://java.sun.com/products/java-media/sound/
These alternative soundbanks may be included in redistributions
of the Java 2 Runtime Environment.
- The javac bytecode compiler, consisting of the following files:
bin/javac [Solaris(TM) Operating Environment
and Linux]
bin/sparcv9/javac [Solaris Operating Environment
(SPARC(TM) Platform Edition)]
bin/javac.exe [Microsoft Windows]
lib/tools.jar [All platforms]
- jre\bin\server\
On Microsoft Windows platforms, the Java 2 SDK includes both
the Java HotSpot Server VM and Java HotSpot Client VM. However,
the Java 2 Runtime Environment for Microsoft Windows platforms
includes only the Java HotSpot Client VM. Those wishing to use
the Java HotSpot Server VM with the Java 2 Runtime Environment
may copy the SDK's jre\bin\server folder to a bin\server
directory in the Java Runtime Environment. Software vendors may
redistribute the Java HotSpot Server VM with their
redistributions of the Java Runtime Environment.
Unlimited Strength Java Cryptography Extension
Due to import control restrictions for some countries, the Java
Cryptography Extension (JCE) policy files shipped with the Java 2 SDK,
Standard Edition and the Java 2 Runtime Environment allow strong but
limited cryptography to be used. These files are located at:
<java-home>/lib/security/local_policy.jar
<java-home>lib/security/US_export_policy.jar
where <java-home> is the jre directory of the Java 2 SDK or the
top-level directory of the Java 2 Runtime Environment.
An unlimited strength version of these files indicating no restrictions
on cryptographic strengths is available on the Java 2 SDK web site for
those living in eligible countries. Those living in eligible countries
may download the unlimited strength version and replace the strong
cryptography jar files with the unlimited strength files.
Endorsed Standards Override Mechanism
An endorsed standard is a Java API defined through a standards
process other than the Java Community Process(SM) (JCP(SM)). Because
endorsed standards are defined outside the JCP, it is anticipated that
such standards will be revised between releases of the Java 2
Platform. In order to take advantage of new revisions to endorsed
standards, developers and software vendors may use the Endorsed
Standards Override Mechanism to provide newer versions of an endorsed
standard than those included in the Java 2 Platform as released by Sun
Microsystems.
For more information on the Endorsed Standards Override Mechanism,
including the list of platform packages that it may be used to
override, see
http://java.sun.com/j2se/1.4.1/docs/guide/standards/
Classes in the packages listed on that web page may be replaced only
by classes implementing a more recent version of the API as defined
by the appropriate standards body.
In addition to the packages listed in the document at the above
URL, which are part of the Java 2 Platform, Standard Edition
(J2SE(TM)) specification, redistributors of Sun's J2SE
Reference Implementation are allowed to override classes whose
sole purpose is to implement the functionality provided by
public APIs defined in these Endorsed Standards packages.
Redistributors may also override classes in the org.w3c.dom.*
packages, or other classes whose sole purpose is to implement
these APIs.
Copyright 2003 Sun Microsystems, Inc., 4150 Network Circle,
Santa Clara, California 95054, U.S.A. All rights reserved -
How to detect JRE with Javascript and without any help of class file
Please tell me how to detect JRE with using the Applet file. Is it possible to detect only through Javascript
It is possible to detect the Sun JRE using only Javascript without any class file.
However, it is rather complicated due to difficulties with Internet Explorer.
http://forum.java.sun.com/thread.jspa?threadID=5177843&tstart=15
http://www.pinlady.net/test/PluginDetect.htm -
I'm hoping there is someone who can give some information on using JRE (with IE plugin) with an external proxy server.
We use a web proxy service that is hosted externally and only receives web requests on port 8080. Our IE browser is configured with a PAC (automatic configuration script) file that lists two external addressses and one internal proxy address all on port 8080.
I am trying to access an externally hosted web site (with lots of Java applets) from our corporate network and this fails when using an external proxy service.
Using JRE 1.4.2 we did a network trace and can see a request going to the external proxy on port 8080 but whatever the response is or what the JRE receives back, it doesn't like it and tries the next proxy address in the list and fails to connect.
In the JRE console, I see the following text when the connection fails (real addresses replaced)
Ping the proxy server <external proxy IP #1> on port 8,080
Proxy server <external proxy IP #1> on port 8,080 can not be reached
Ping the proxy server <external proxy IP #2> on port 8,080
Proxy server <external proxy IP #2> on port 8,080 can not be reached
Ping the proxy server <internal proxy IP > on port -1
Proxy server <internal proxy IP > on port -1 can not be reached
Does anyone know what the 'Ping the proxy server' is trying to do to detect the external proxy server? Whatever it is, it doesn't like the external ones and only works with the internal one. I'm assuming this is not a simple ICMP ping as the network trace shows a TCP request on port 8080 going to the external proxy and nothing coming back. I would like to know if it could be something the external proxy is blocking (so I could ask the supplier to change). I've looked at a good trace just using the internal proxy but can't see what type of response JRE accepts.
Later versions of JRE have the same issue except they resolve the last proxy (the internal one) correctly and still won't use the external proxies.
If there is anyone who can advise me on this or point me in the direction of some documention I would be very grateful.
-Steveaseemfromnyc wrote:
is it possible to stream the contents of the hard drive to the hdtv witht the hard drive
Yes, add them to iTunes. The fact that they are on an external doesn't stop them from being in iTunes.
If necessary, create a separate library which you just use when you have the external connected.
Alternatively, if you have an iPhone or iPad you could check out an App like Air Video, which displays video that isn't in iTunes on your device. I think you can then use Airplay to get it onto your ATV. -
Please I need this personal information from you.
We are running MS Dynamics RMS in our environment sitting on three different Terminal Servers (Not Farm) because they point to different Databases? We are planning to consolidate them.
Is it possible to install the RMS applications on a Single session host while each of them point to their respective databases?
Can App-V with RDS solve this issue?
I will appreciate if you can assist with this informationHi,
Thank you for posting in Windows Server Forum.
As per my research, you can install RMS on RD session host server but sorry to say that there is no official document related to this configuration. And so far this case is related to Dynamics RMS you can place your post in Dynamics RMS Forum as they are the
people who can describe you clearly related to configuration and troubleshooting for RMS.
http://community.dynamics.com/rms/f/106.aspx
Hope it helps!
Thanks.
Dharmesh Solanki -
Deployment of JRE with application please help
Hello All. I am new to java. have managed to build a simple telephone directory running through a gui all is now working well. I would like to deploy my application to another machine how do i go about this?. I understand that any other pc without the J2SE software will require the runtime enviroment but little else. could someone point me in the direction of a usefull tutorial. I have looked around suns site but cannot seem to find a beginners guide for this topic.(I intend to run application on windows 98-xp)
Many thanks
ScottYou have got three options:
1) Distribute the JRE with your program and ask your users to install it. It is pretty easy to install. Download it from here: http://java.sun.com/j2se/1.4.1/download.html
2) Direct the user to the following page for even easier install and download: http://java.sun.com/getjava
3) Build an installer that takes care of everything for you. InstallAnywhere is a free one: http://www.zerog.com. -
Silent installation of JRE with server JVM?
Is it possible to deploy the JRE with the server HotSpot JVM included? So far, we deployed the JRE silently (http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/silent.html) and copied the "server/" subdirectory (with the server HotSpot JVM) of the relating JDK separately to each server. Is there a way to include this Server JVM in the silent installation so that Java apps can use the "-server" option on each JRE host?
How do you do the silent install currently? (this will give a clue on how to make it more silent).
Peter -
I have full version of exe4j and install4j from e-j technologies and i have been able to successfully create an executable file for my java application on my system and it work real fine.
But in a situation where by the destination system where the application will be used might not have a JRE installed on it. In this situation the executable will not work.
So what to know is if it is possible to bundle a JRE with my application with the use of Install4j such that when it detects that there is no JRE on the system, it then installs the JRE that comes with it and if a JRE exists it proceeds with the installation of the application only.
If Install4j is not being able to do this, is there any other application out there that can do it. I know install Anywhere from Zerog does that, but i don't want to use it.
Thanks for your response.I'm sure why it didn't work. That is how I bundle the JRE. The only disadvantage about bundling is the size of the installer file will be pretty large. In my opinion, relying on a public version is not a good idea if you have no control of the target box. The user might, for some reason, decide to uninstall java or upgrade to a new incompatible version and your app. may stop working. I'm sure many on here will disagree with this though.
I always use the marner .exe wrapper:
http://www.megaupload.com/?d=FYZAVM77
and inno installer:
http://www.jrsoftware.org/isinfo.php
They're both free to use and I've had no problems with them. Another wrapper is Javaround:
http://sourceforge.net/project/showfiles.php?group_id=234356 -
What is the recommended practice for bundling JRE with Java Application?
Hello,
I am using a software called Advanced Installer to create a Windows installer (.msi file).
This .msi file contains :
- a .exe file which is a wrapper for a .jar file (a Java Swing program),
- and a directory for the JRE.
I read an article on the web which recommended bundling the JRE with the Java program. And
this is what I am doing. And my understanding is that if the user's system does not already
have the JRE installed, the bundled JRE would allow my Java Swing program to run.
However, when I tried to install my .msi file on a system that did not already have the JRE,
my Java Swing program would not start. After installing the JRE on this system, my Java
Swing program started and ran fine.
Do I really need both JREs, one bundled with my Java Swing application and one installed at the
system's location for my Java Swing program to start and run?
Another question I have is that if every application would bundle its own JRE, there could be many
copies/possibly versions of the JRE on the system, is this acceptable? What is the common or
recommended practice?
Thank you for your help.
Akino.I'm sure why it didn't work. That is how I bundle the JRE. The only disadvantage about bundling is the size of the installer file will be pretty large. In my opinion, relying on a public version is not a good idea if you have no control of the target box. The user might, for some reason, decide to uninstall java or upgrade to a new incompatible version and your app. may stop working. I'm sure many on here will disagree with this though.
I always use the marner .exe wrapper:
http://www.megaupload.com/?d=FYZAVM77
and inno installer:
http://www.jrsoftware.org/isinfo.php
They're both free to use and I've had no problems with them. Another wrapper is Javaround:
http://sourceforge.net/project/showfiles.php?group_id=234356 -
JRE with JDK !!!!!!!!!!!!!
Hi,
I am new to Java development.I have a doubt---why does SUN provide JRE along with JDK when u have a runtime environment available within ur JDK. It could have been provided only seperatley for nondevelopers to download.why JRE with JDK...
Is it marketing :-) or Does the JRE have features that are not there in JDK ???
Thanx
ShivThe JDK is for development purposes. Sun could, if they wanted to, make the versions different. For instance, the JDK can be compiled with certain flags to help development (debugging, etc.)
The JRE is used for a "real world" test bed.
Regards,
Nick G. -
NullPointer Exception ,web start Static class loading in sun JRE with JNLP
I have a netbenas based application and using with jre 1.6.0_22.
i am getting NPE as
java.lang.NullPointerException
at com.sun.deploy.security.CPCallbackHandler.isAuthenticated(Unknown Source)
at com.sun.deploy.security.CPCallbackHandler.access$1300(Unknown Source)
at com.sun.deploy.security.CPCallbackHandler$ChildElement.checkResource(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.checkResource(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.osi.solutions.platform.classbuilder.view.ClassExplorerTopComponent.<init>(ClassExplorerTopComponent.java:89)
at com.osi.solutions.platform.classbuilder.view.ClassExplorerTopComponent.getDefault(ClassExplorerTopComponent.java:143)
at com.osi.solutions.platform.classbuilder.view.ClassExplorerTopComponent$ResolvableHelper.readResolve(ClassExplorerTopComponent.java:198)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeReadResolve(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.readSerial(XMLSettingsSupport.java:544)
at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.instanceCreate(XMLSettingsSupport.java:576)
at org.netbeans.modules.settings.convertors.SerialDataConvertor$SettingsInstance.instanceCreate(SerialDataConvertor.java:420)
at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentPersistentForID(PersistenceManager.java:531)
at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentForID(PersistenceManager.java:641)
at org.netbeans.core.windows.PersistenceHandler.getTopComponentForID(PersistenceHandler.java:422)
at org.netbeans.core.windows.PersistenceHandler.load(PersistenceHandler.java:147)
at org.netbeans.core.windows.WindowSystemImpl.load(WindowSystemImpl.java:69)
[catch] at org.netbeans.core.NonGui$2.run(NonGui.java:178)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
This issue comes very occassionaly .
Does someone have any idea what is wrong. Is this related to any jre bug.
Thanks,
totaramHi I'm the one who posted those findings... though further investigation found that increasing your heap size can help, but at best it only reduces the occurances of the problem.
The real cause of the issue is that the Signer's info for a CachedJarFile is held onto by softreferences and is not "rebuilt" if it has been garbage collected. the Reason that increasing your initial heap size works, is that it helps to delay the conditions on which these softreferences are garbage collected. (SoftReferences become eligible for garbage collection when the heap needs to be expanded)
I've put together a hack that traverses all of the jars in a webstart application, finds their corresponding CachedJarFile instance and sticks all of the relevant SoftReferences into a static list, so that they become "hard references" and are never garbage collected.
Below is my JarSignersHardLinker.java hack To use it, just call JarSignersHardLinker.go() it will then
* Check that you are running on webstart and you are on java 1.6 update 19 or higher.
* If the above is true then it will spawn a new thread and create hard links to all the jarsigners for each jar on the classpath.
If you need more info email me on my gmail account. My user name is squaat. I've also posted this code at Re: Error with Java WebStart Signed Jars on 1.6.0_19's new Mixed Code
If you find this helpful and it solves your problems, please leave a positive comment and/or vote for the bug at:
http://bugs.sun.com/view_bug.do?bug_id=6967414
If any oracle/sun webstart engineers are reading this, please contact me... we'd really like this bug fixed.
import java.io.IOException;
import java.lang.ref.SoftReference;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.JarURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import java.util.jar.JarFile;
* A utility class for working around the java webstart jar signing/security bug
* see http://bugs.sun.com/view_bug.do?bug_id=6967414 and http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6805618
* @author Scott Chan
public class JarSignersHardLinker {
private static final String JRE_1_6_0 = "1.6.0_";
* the 1.6.0 update where this problem first occurred
private static final int PROBLEM_JRE_UPDATE = 19;
public static final List sm_hardRefs = new ArrayList();
protected static void makeHardSignersRef(JarFile jar) throws java.io.IOException {
System.out.println("Making hard refs for: " + jar );
if(jar != null && jar.getClass().getName().equals("com.sun.deploy.cache.CachedJarFile")) {
//lets attempt to get at the each of the soft links.
//first neet to call the relevant no-arg method to ensure that the soft ref is populated
//then we access the private member, resolve the softlink and throw it in a static list.
callNoArgMethod("getSigners", jar);
makeHardLink("signersRef", jar);
callNoArgMethod("getSignerMap", jar);
makeHardLink("signerMapRef", jar);
// callNoArgMethod("getCodeSources", jar);
// makeHardLink("codeSourcesRef", jar);
callNoArgMethod("getCodeSourceCache", jar);
makeHardLink("codeSourceCacheRef", jar);
* if the specified field for the given instance is a Softreference
* That soft reference is resolved and the returned ref is stored in a static list,
* making it a hard link that should never be garbage collected
* @param fieldName
* @param instance
private static void makeHardLink(String fieldName, Object instance) {
System.out.println("attempting hard ref to " + instance.getClass().getName() + "." + fieldName);
try {
Field signersRef = instance.getClass().getDeclaredField(fieldName);
signersRef.setAccessible(true);
Object o = signersRef.get(instance);
if(o instanceof SoftReference) {
SoftReference r = (SoftReference) o;
Object o2 = r.get();
sm_hardRefs.add(o2);
} else {
System.out.println("noooo!");
} catch (NoSuchFieldException e) {
e.printStackTrace();
return;
} catch (IllegalAccessException e) {
e.printStackTrace();
* Call the given no-arg method on the given instance
* @param methodName
* @param instance
private static void callNoArgMethod(String methodName, Object instance) {
System.out.println("calling noarg method hard ref to " + instance.getClass().getName() + "." + methodName + "()");
try {
Method m = instance.getClass().getDeclaredMethod(methodName);
m.setAccessible(true);
m.invoke(instance);
} catch (SecurityException e1) {
e1.printStackTrace();
} catch (NoSuchMethodException e1) {
e1.printStackTrace();
} catch (IllegalArgumentException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (InvocationTargetException e) {
e.printStackTrace();
* is the preloader enabled. ie: will the preloader run in the current environment
* @return
public static boolean isHardLinkerEnabled() {
boolean isHardLinkerDisabled = false; //change this to use whatever mechanism you use to enable or disable the preloader
return !isHardLinkerDisabled && isRunningOnJre1_6_0_19OrHigher() && isRunningOnWebstart();
* is the application currently running on webstart
* detect the presence of a JNLPclassloader
* @return
public static boolean isRunningOnWebstart() {
ClassLoader cl = Thread.currentThread().getContextClassLoader();
while(cl != null) {
if(cl.getClass().getName().equals("com.sun.jnlp.JNLPClassLoader")) {
return true;
cl = cl.getParent();
return false;
* Is the JRE 1.6.0_19 or higher?
* @return
public static boolean isRunningOnJre1_6_0_19OrHigher() {
String javaVersion = System.getProperty("java.version");
if(javaVersion.startsWith(JRE_1_6_0)) {
//then lets figure out what update we are on
String updateStr = javaVersion.substring(JRE_1_6_0.length());
try {
return Integer.parseInt(updateStr) >= PROBLEM_JRE_UPDATE;
} catch (NumberFormatException e) {
//then unable to determine updatedate level
return false;
//all other cases
return false;
* get all the JarFile objects for all of the jars in the classpath
* @return
public static Set<JarFile> getAllJarsFilesInClassPath() {
Set<JarFile> jars = new LinkedHashSet<JarFile> ();
for (URL url : getAllJarUrls()) {
try {
jars.add(getJarFile(url));
} catch(IOException e) {
System.out.println("unable to retrieve jar at URL: " + url);
return jars;
* Returns set of URLS for the jars in the classpath.
* URLS will have the protocol of jar eg: jar:http://HOST/PATH/JARNAME.jar!/META-INF/MANIFEST.MF
static Set<URL> getAllJarUrls() {
try {
Set<URL> urls = new LinkedHashSet<URL>();
Enumeration<URL> mfUrls = Thread.currentThread().getContextClassLoader().getResources("META-INF/MANIFEST.MF");
while(mfUrls.hasMoreElements()) {
URL jarUrl = mfUrls.nextElement();
// System.out.println(jarUrl);
if(!jarUrl.getProtocol().equals("jar")) continue;
urls.add(jarUrl);
return urls;
} catch(IOException e) {
throw new RuntimeException(e);
* get the jarFile object for the given url
* @param jarUrl
* @return
* @throws IOException
public static JarFile getJarFile(URL jarUrl) throws IOException {
URLConnection urlConnnection = jarUrl.openConnection();
if(urlConnnection instanceof JarURLConnection) {
// Using a JarURLConnection will load the JAR from the cache when using Webstart 1.6
// In Webstart 1.5, the URL will point to the cached JAR on the local filesystem
JarURLConnection jcon = (JarURLConnection) urlConnnection;
return jcon.getJarFile();
} else {
throw new AssertionError("Expected JarURLConnection");
* Spawn a new thread to run through each jar in the classpath and create a hardlink
* to the jars softly referenced signers infomation.
public static void go() {
if(!isHardLinkerEnabled()) {
return;
System.out.println("Starting Resource Preloader Hardlinker");
Thread t = new Thread(new Runnable() {
public void run() {
try {
Set<JarFile> jars = getAllJarsFilesInClassPath();
for (JarFile jar : jars) {
makeHardSignersRef(jar);
} catch (Exception e) {
System.out.println("Problem preloading resources");
e.printStackTrace();
} catch (Error e) {
System.out.println("Error preloading resources");
e.printStackTrace();
t.start();
}Edited by: 855200 on 04-Jul-2011 17:31
Maybe you are looking for
-
HI all, I have AIM-CUE(v 3.2) on 2851 Router with IOS image Version 12.4(22)T4 (c2800nm-advipservicesk9-mz.124-22.T4.bin) with CCME version 7.0(1). I have been trying to make the Aim-Cue run and come up for initialization with every method I know o
-
Using sourcetext from another layer as an array - blowing up expression
Hey all, I am doing something that I assumed would be a quick and easy, and it is turning into quite a headache. Here is what I am trying... (The following works btw) stuff = thisComp.layer("textSource").text.sourceText; stuff[2] The problem is that
-
What I need to acheive is a search for all documents that appear in folders A, B and C with certain attributes. I started with find all documents in Folder A using a FolderRestrictQualification and the documents have search attributes, no problems. H
-
Understanding users and groups
Hi. I'm new to Connect Pro and need to do a meeting with a named user (Host) who is also an administrator. If I want to create a meeting and be a moderator with the host, which group do I need to belong to on the administrator interface? I saw Admini
-
Has anyone experience with GMAIL, emails that is sent out from the iPhone goes to the receiver and also will post the same email back into the Gmail Inbox? Yahoo email does not have this issue.