Eclipse applet viewer works but not browser
With the code below, my problem is that I am able to get the applet to work in eclipse but unable to get it to work in a regular IE browser. I tried various different ways of getting the path name. The code goes through printing **File name :edu/vt/vbi/pathport/client/plugin/pathinfo/pathinfo.xsl with the classloader being not null. However, it seems that the problem occurs when trying to get the url and then getting the input stream. myClassLoader.getResource(xslFileName); seems to be returning null according to the browser console but is retrieved okay by eclipse. any help would be much appreciated. thanks in advance.
String clsName = this.getClass().getName();
int lastDot = clsName.lastIndexOf('.');
String pkgName = clsName.substring(0, lastDot);
String xslFileName = pkgName.replace('.', '/');
xslFileName = xslFileName + "/pathinfo.xsl";
System.out.println("**File name :" + xslFileName);
ClassLoader myClassLoader = Thread.currentThread()
.getContextClassLoader();
URL url = null;
if (myClassLoader == null) {
System.out.println("classloader is null");
} else {
url = myClassLoader.getResource(xslFileName);
//InputStream is = myClassLoader.getResourceAsStream(xslFileName);
InputStream is = null;
try {
if (url != null){
System.out.println("url is " + url);
is = url.openStream();
} catch (IOException e) {
System.out.println("url null");
e.printStackTrace();
if (is == null) {
System.out.println("resource not found");
Transformer transformer = tFactory
.newTransformer(new javax.xml.transform.stream.StreamSource(
is));
problem solved... jar path required extra / in order to be recognized. thanks
Similar Messages
-
all the links in the header of any websites are not working, the cursor is not changing into pointer and no way to click on any link located at the top of any website page. I reinstalled firefox and it s the same. No problem in others browser. the tool bar is working but not the links inside any web page located between the top 300px height.
So I can t tlog into any website, i cant write an email as the compose button is located in the top of the page.. Please help, i have all my bookmarks into my firefox...Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.com/kb/Safe+Mode
*https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes -
Just bought an iPhone 5C.. Safari is non-functional! A blank frozen screen... What gives? Safari is Apple's browser for gods sakes! Google Chrom works but not Safari? This is nuts. This is an "upgrade"?? Anyone else experiencing this? Or should I just give up and return this
Are you always like this?
First try a Reset: Hold down the home and sleep buttons, wait for the Apple logo, let go of the buttons. -
Still have a problem with the drivers in Windows 8 release preview, for my HP B109 a-m all-in-one, have printer working but not scanner, is there any chance of a fix before final release of Windows 8 ?.
Review my post here:
http://h30434.www3.hp.com/t5/Windows-8-Release-Preview/SOLUTION-Get-Win-7-Printer-Drivers-HP-Solutio...
And see if something similar will work for you. -
My Mac Mini doesn't recognize my Avengers DVD--it keeps saying "Supported disc not available." I've tried other DVD's which work, but not this one. itunes and everything else has been updated to the newest versions. Help? Also...It doesn't recognize the digital copy DVD.
I have ALL the exact same symptoms as on my home computer.
It sure sounds to me like something on the iPod is broken. If it's under warranty then I would send it back for repair. If not, check out some of the web repair services, such as iPodResQ etc. -
or gaming youtube, while call or voice recording playing - all works fine, so speakerphone is working but not on all apps. hard reset done - no changes.
iphone 4
SOLVED plugin to charger solved it - so problem was with contacts -- no idea why - phone is new - no water - no havy dust - usual using
hope will never return. ThanksWe checked it with an iPhone 5 in house multiple times and could not reproduce this Problem. Must be something specific to your device. Maybe your speakerphone volume is turned down completely?
Follow the latest Skype Community News
↓ Did my reply answer your question? Accept it as a solution to help others, Thanks. ↓ -
Hi!My 6 month old MBP 13" has suddenly stop charging.Mac is working,but not charging
Troubleshooting MagSafe adapters http://support.apple.com/kb/ts1713
If you need to pursue further you can do it on-line, start here
https://selfsolve.apple.com/agreementWarrantyDynamic.do -
My iPad cannot connect to my internet. the internet is working but not with my ipad.
my iPad cannot connect to my internet. the internet is working but not with my ipad.
Call your ISP (Internet Service Provider) and explain them your issue, it could range from having your router configured incorrectly to having a wiring issue. Personally, I have Comcast and they are great, no issues, and awesome customer service.
Hope you get up and running ASAP -
My volume down button doesn't work on my iPhone. The UP buttown works, but not the down button. I have tried a hard reset and that didn't fix it.
Try this.
Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up. -
ICloud keeps asking for password but will not take it. All other devices work but not my IMac???
Exactly which password are you inputting? iCloud looks for your AppleID password.
-
Wake on Lan (works, but not always)
Iam trying to get Wak on Lan working on my iMac. It works, but not always. When I put my mac to sleep en send the magic package, my mac turns back on. But when my mac turns to sleep and I wait a few hours (the next morning), my Mac doesn't respond to the same magic packag. When I wake up the Mac by hand, and put it back to sleep again, the magic package works again en turns the mac on.
It almost looks like the mac goes into a deeper sleep mode after a few hours. Does anyone knows what could ben the reazon.mmm, It seems like my mac doesn't always turns to sleep mode. Most of the time it only turns off the screen (solid light). My energy settings are 10 minutes for the screen and 15 minutes for the mac. But after turning of the screen it never turns to sleepmode. Ecxept when I put it to sleep manualy.
Strange thing is: when the screen is turned of, shouldn't I be able to get tot my files... (I can't actualy). -
Sap xi SCENARIO source directory working ,but not working target directory
sap xi SCENARIO source directory working ,but not working target directory..
plz help meHi,
Be more specific on the problem you are facing so that the ppl here can help..
looks like your are trying to file to file scenario and the file is not generating at the target folder ...
then check the communication logs of the receiver adapter using RWB->CC logs..
post the error you have received there..
HTH
Rajesh -
can't sync ical on my iphone and imac. email and note work but not ical. can anyone help.
thanks
bmoreimacSo how can i make it work that way, i asked one of my friends, and she says it works like that...when she delete the email on her iphone it is deleted on the mac too, what do i do to change this?....my mail it's hotmail, i don't know if its relevant
-
TS1702 facetime on my iphone works but not on my ipad
Facetime on my iPhone 4S works but not on my iPad (3rd or 4th Gen)
From the iPad User Guide:
To use FaceTime, you need an Apple ID and a Wi-Fi connection to the Internet. When you open
FaceTime, you may be prompted to sign in using your Apple ID, or to create a new account.
Make a FaceTime call: Tap Contacts, choose a name, then tap the phone number or email address the person uses for FaceTime.
You can also make a FaceTime call from the Contacts app.
Rotate iPad to use FaceTime in either landscape or portrait orientation. To avoid unwanted orientation changes, lock iPad in portrait orientation. See Portrait and landscape orientation on page 20. -
Share safari bookmarks but not browsing history
In iCloud, how do I share safari bookmarks but not browsing history?
Thanks for replying. Private browsing doesn't save either type of history, so it wouldn't make a difference.
I don't want my browsing history available when Firefox is open. I sometimes leave the browser open for days at a time if I haven't turned my computer off.
Maybe you are looking for
-
Pavilion A6430f recovery error code
Hi, I have a Pavilion a6430f desk top and I just replaced both hard drives on it. I inserted my recovery disk and began the recovery process when I received an error code of 0x400 100 130000 1002 as the hard drives were just beginning the reformattin
-
Adjusting presentation to audio length
I'm using a complete song as the background audio to a presentation. I would like the slide presentation to end at the same time as the music ends. It requires testing to get it right, but so far, the only way I can see to do that is to play the enti
-
Internet sharing no more working after upgrading to 10.5.6
With my early 2008 MacPro, I used to share my internet connection for my old iMacDV 400 (under MacOS 10.3.9). All the network and sharing settings were fine prior to the upgrade to 10.5.6. But after upgrading my MacPro to 10.5.6 I am no more able to
-
Skip Logic option does not appear
12.12.2013 I watched the videos, updated today 12.12.2013, and the option for Skip Logic does not appear when inserting a page break as shown in the video. Is there another add-on that I need to purchase? This would make matters less confusing for pe
-
Sap workflow daily mail remainder
Hi experts, I am using Workflow Scenario for travel request My requirement is like this... when a travel request is created 1.approve task should go to the manager of employee to approve.(done) 2.If he doesn't approve the request, a reminder mail sho