Cant See RTF Files in JAR but can when running program from command prompt

posted August 16, 2005 08:26 AM
Hi ALL:
I have a Java Swing APP. It has Menus which displays information through File I/O in a JEditorPane.
When I run my program from Command Prompt using "java myApp" it shows these RTF Files as it is.
However when I run them after converting Directory into a Executable JAR FILE, it fails. I get a blank JEditorPane. My RTF files are in the CORRECT PATH, just dont get displayed. Rest of the APP works fine.
Chetan
any suggetsions

posted August 16, 2005 08:26 AM
Hi ALL:
I have a Java Swing APP. It has Menus which displays information through File I/O in a JEditorPane.
When I run my program from Command Prompt using "java myApp" it shows these RTF Files as it is.
However when I run them after converting Directory into a Executable JAR FILE, it fails. I get a blank JEditorPane. My RTF files are in the CORRECT PATH, just dont get displayed. Rest of the APP works fine.
Chetan
any suggetsions

Similar Messages

  • HT203167 i downloaded the latest update ios 7.0.4 and update my iphone 5, but to my surprise i couldnt locate the downloaded file on itunes and i've also checked my itunes folder, still cant see the file. pls anybody who can help.

    i downloaded the latest update ios 7.0.4 and update my iphone 5, but to my surprise i couldnt locate the downloaded file on itunes and i've also checked my itunes folder, still cant see the file. pls anybody who can help.

    The downloaded file is probably stored at C:\Users\<User>\AppData\Roaming\Apple Computer\iTunes\iPhone Software Updates. In general it is probably best to "download and install" updates than download and then install later. Note that you cannot revert to the older firmware if you don't like the update, even if you have the old .ipsw files.
    tt2

  • Can I change user name after running essbase from command prompt??

    Hi,
    I run essbase from command prompt and during this activity I was asked to give user name and password, but by mistake I put wrong user name and now wolud like to chanege it.
    Is it possible??
    cheers,

    It worked,
    now I was able to connect to easbase from planning, I ve created sample aplication and initialize it but cannot connect to Eas to download data for sample application. After I run the validation there is now only one error displayed:
    Essbase / Essbase Administration Services
    FAILED Web App Availability of web application context (POL-MPIKULSKI 10080, eas)
    Error: com.hyperion.cis.utils.BadResponseCodeException: Bad response code: 404
    Recommended Action: Check application is started
    I tried to start the eas from start>programs>epm system>essbase>administration services>start administration services(java embeded) but it didnt help.
    can I start in in different way??
    cheers,

  • Can you run programs from time capsule? IE can I run microsoft office from it?

    can you run programs from time capsule? IE can I run microsoft office from it?

    Yes, probably can.. but it won't be fast. You are better storing programs locally and data remotely.

  • Cant run a program from command prompt

    i am using eclipse 3.2 for java development.
    programs are running from editor window, but whenever i am trying to run it from command prmpt , i am getting folowing error...
    ..........NoClassDefinitionFound
    how to resolve it...??
    regards
    yogesh g k

    Since there have been a lot of posts from people who fail to compile and run their correct code, I would like to suggest to use ant for building and running! It hides the complexities of specifying the correct paths and a lot it's easier to type
    prompt>ant
    at the command line than
    prompt>javac -d . -cp .;longListOfJarsNeededToRun somePackage/*.java aLotOfOtherFilesToCompile.java
    prompt>java -cp .;longListOfJarsNeededToRun somePackage.someClass
    It takes some time to get familiar with the configuration, but once you get it right, you gain back a lot of your invested time!

  • Can't create database from command prompt

    I am using Oracle 9i over Win XP. I can create new database using OEM wizard without any problem. However, when I try to create new database from command prompt, using following commands, I get an error.
    sqlplus /nolog
    connect / as internal (when I issue this I get message TNS no listener)
    CONNECT SYS/password AS SYSDBA (can't understand how to use this, I don't have password because I've not created the database)
    Can anyone help me how to create new database from command prompt?
    Thanx

    "TNS No Listener" => Start the listener
    To be connected as SYSDBA you dont need a password if your are logged in the DBA group, you just have to :
    PROD_:id
    uid=102(oracle) gid=103(oinstall)
    PROD_:sqlplus "/ as sysdba"
    SQL*Plus: Release 8.1.7.0.0 - Production on Wed Jul 23 11:46:50 2003
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.4.0 - Production
    SQL> show user
    USER is "SYS"
    SQL>
    Fred

  • VBScript Runs Correctly From Command Prompt, But Not From SQL Server Agent Job

    I'm trying to run this script on my local machine to do some post-batch cleanup and it doesn't run correctly from the scheduled job (or when I invoke the job).
    Here's the script in question:
    Option Explicit
    Const filePath = "C:\Documents and Settings\jmunn\My Documents\Visual Studio 2008\Logs\"
    Const holdDays = 6
    main
    Sub Main()
    ClearArchive
    End Sub
    Sub ClearArchive()
    Dim fso 'As Scripting.FileSystemObject
    Dim fld 'As Scripting.Folder
    Dim f 'As Scripting.File
    Dim delLogName, delLogOut, delCtr
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set fld = fso.GetFolder(filePath)
    delLogName = filePath & "Nightly Backup - Backup Logs Deleted" & ".txt"
    Set delLogOut = fso.CreateTextFile(delLogName, True)
    delLogOut.WriteLine(delLogName)
    delLogOut.WriteLine("")
    delLogOut.WriteLine("-- The following log files were deleted on " & DateValue(Now()) & " at " & TimeValue(Now()))
    delLogOut.WriteLine("")
    delCtr = 0
    For Each f In fld.Files
    If Left(f.Name, 48) = "Nightly Backup - SQL Server Databases_Subplan_1_" And Right(LCase(f.Name), 4) = ".txt" Then
    If DateDiff("d", f.DateCreated, Date()) > holdDays Then
    delLogOut.WriteLine(f.Name)
    fso.DeleteFile f, True
    delCtr = delCtr + 1
    End If
    End If
    Next
    If delCtr = 0 Then
    delLogOut.WriteLine("No log files were deleted this run...")
    End If
    Set fld = Nothing
    Set fso = Nothing
    delLogOut.Close
    End Sub
    If I put the script in its own file and run it from the command prompt, it runs just fine. If the script runs from the SQL Server Agent job, the for-loop will delete the files correctly, but the filenames
    do not get written to the deletion log file and the counter does not get incremented, so according to the job log, nothing was deleted. Why does the script run differently from each invocation? It can't be a permission thing, the service that logs in has full
    access to the directory and the files do get deleted. Any ideas out there?
    Between this and other outstanding issues, I'm quickly losing faith in SQL Server.  >=o(
    Thanks in advance for your thoughts!
    John
    Version Info:
    Microsoft SQL Server Management Studio      10.0.2531.0
    Microsoft Analysis Services Client Tools      10.0.1600.22
    Microsoft Data Access Components (MDAC)      3.85.1132
    Microsoft MSXML      2.6 3.0 4.0 5.0 6.0
    Microsoft Internet Explorer      8.0.6001.18702
    Microsoft .NET Framework      2.0.50727.3603
    Operating System      5.1.2600
    "A bus station is where a bus stops. A train station is where a train stops. On my desk I have a workstation..."

    Hi
    jrmunn
    i am trying to execute VB script to refresh my excel files.. using Vbscript file through SQL Agent job step.
    i have copied VBscript in a file with the extension RefreshExcel.vbs kept in C:\RefreshExcel.vbs
    Below is the script used inside the file (RefreshExcel.vbs)
    //---Script code-----------------------------------------------------------------
    Dim objXL, objWB
    Dim FileLocation, FileName
    On Error Resume Next
    'lgnConn = 1
    FileLocation = "F:\Reports\Reports"
    Set objXL = CreateObject("Excel.Application")
    objXL.DisplayAlerts = False
    FileName = "ReportFile1.xlsx"
    'MsgBox (FileLocation & "/" & FileName)
    Set objWB = objXL.Workbooks.Open(FileLocation & "/" & FileName)
    objWB.EnableConnections
    objXL.CalculateUntilAsyncQueriesDone
    objWB.RefreshAll
    objXL.CalculateUntilAsyncQueriesDone
    objWB.RefreshAll
    objXL.CalculateUntilAsyncQueriesDone
    objWB.Save
    objWB.Close
    Set objWS = Nothing
    Set objWB = Nothing
    objXL.Quit
    Set objXL = Nothing
    'MsgBox ("Refresh Completed")
    ---------------------------------------------------------------------------------------------------//Script complete
    Now when i am trying to call this script file in SQL agent job step (as you mentioned )
    as Type -cmdExec(OperatingSystem)
    cscript "C:\RefreshExcel.vbs"
    Issue: job step executed succesfully ,,but without performing any refresh on the excel. So i am not understandig what is going wrong. the same script file work when i am calling it through a batch file (window scheuler task). But it doesnt support
    to run the file "when user is not logged in"
    that is why  i want to refresh my excel file through sql agent ,which can be scheduled to any time and cab be run as SQL agent credentials.
    Can you please help me on this ...i have tried all the option but nothing working .. found hope by seeing your solution.
    Thanks in advance.
    Please help me. :-(

  • Can't run programs from non-admin account

    I'm new to the Mac and rusty with -- but not new to -- UNIX. I'm working with an iMac running OS X 10.2. I have installed several programs in a non-admin account (called "boys"), but they will not run from that account. The "get info" screen tells me that the "boys" account is the owner of the program. Read/write permission is enabled. When I try to run the programs, I get this error message: "The operation could not be completed because you do not have enough access privileges." I have installed the same programs in an admin account, and the programs run just fine from that account. I'd like to get this working so that the boys in the "boys" account can actually use the system. I have "inherited" this system from prior users. Programs that were on the system when I got my hands on it do run -- for the most part -- from "boys."
    iMac Mac OS X (10.2.x)
    iMac   Mac OS X (10.2.x)  

    Thanks for the reply, Ken. My various unsuccessful attempts to solve this problem led me to create a folder named "Programs." (I know, my PC roots are showing.) I did this for two reasons: 1) I hoped that this would give me more control over what was happening; and 2) I wanted to give the children with whom I am working an easy way to find the programs that I want them to use. When I use < cd /users/boys > and then do an ls- l, I see the Programs folder. An ls -l on that folder shows all the program I have loaded and indicates that the "x" permission is applied to owner, group and others. Moreover, I assumed (incorrectly, perhaps) that installing the programs using the "boys" non-admin account would make them the "owner" of the programs and that "x" permission would follow. Well, ls -l indicates that they are the owners and that they do have execute permission. I can only guess that the prior users of this system -- and nobody in this organization seems to know where they are -- did something that requires more than Advil to overcome.
    J...
    iMac Mac OS X (10.2.x)
    iMac Mac OS X (10.2.x)

  • Can't run programs from non-admin account: redux

    Background: I have years of experience with PCs, very little with Macs. I work with children in a group home. The tech support people who set up this iMac (OS X 10.2) have long since departed, and no one in the organization has any clue as to what changes they made to this system, and I'm sure that those tech people made some changes. For example, in admin accounts other than "root," either there is no access to the Utilities folder or the folder has been well hidden.
    The Problem: The boys in this home will use a non-admin account. The programs I have installed for them will run under admin accounts but not under the "boys" account, which is non-admin. The system tells me that the account does not have enough access privileges to run the programs. (Program that had been installed before I got access to this iMac will run under the "boys" account.)
    In discussions on this forum several months ago, I thought the answers I got here had helped me solve the problem. Then, for administrative reasons, I did not touch the iMac until last week. What I thought had been solved is not solved.
    From "root," using the "Capabilities" option in the Accounts folder, I have added to the "Add other applications..." section the programs I want "boys" to have access to. But this doesn't work. When I log in to "boys," access is denied: insufficient access privileges.
    If I give up on this system, the boys will not be able to use this iMac, and that would be a shame.

    I realize that it sounds like I ignored all the previous advice before I drafted this latest post. But the first thing I did when I returned to the iMac was to look at the posts.
    I didn't touch the system for six months. I was waiting for approval from administration to upgrade the OS. By the time I got the approval, upgrading was no longer an option -- according to the manager of the local Genius Bar. This system is not capable of running 10.5, and Apple will no longer sell 10.4. I can find 10.4 on the Net, but those are private sellers and the price is too high.
    Now that I've got that out of the way, the current task: I have no idea why, but the gains I accomplished six months ago have disappeared. The "boys" account can run none of the software I installed. No one else has touched the system. (I live alone.)
    I logged on as "root" and went to Accounts. Using 10.2's Capabilities function, I tried to check all the boxes for "boys." But when I close the screen and then re-open it, the system has unchecked "Open all System Preferences"; "Change Password"; and access to "Utilities."
    At this point I cannot create new folders under "boys." "boys" can run software that was installed before I got the machine, but that's all.
    I have to assume that I inadvertently did something that wiped out my previous gains. But I ain't got a clue.

  • Hi, All my music files have an exclamation mark on the left and when I tunes asks me to locate a window opens with I Tunes folders but I still cant see my music library . What can i do? Thanks

    Hi, All my music files have an exclamation mark on the left and when I tunes asks me to locate a window opens with I Tunes folders but I still cant see my music library . What can i do? Thanks

    The red exclamation mark indicates that itunes cannot find your files.
    Are the music files still on your harddrive. Look n Finder
    Username/Music/iTunes/iTunes Media
    If the files are there then keep the option key pressed and open iTunes. A dialog box will open asking you to choose your library. Select Choose and then navigate to the Music/iTunes Folder and click OK

  • I can not pull any file from mediathek to playlist since iTunes 10.5 . I get an forbidden sign in black. I see my ipod on itunes but can not pull (iOS 5.0) (ipod touch). On other PC all is working.

    I can not pull any file from mediathek to playlist since iTunes 10.5 . I get an forbidden sign in black. I see my ipod on itunes but can not pull (iOS 5.0) (ipod touch). And I can not synchronise...
    On other PC all is working.

    Tried to turn Avast off but the problem still there.
    I created a Playlist to my iphone using the musics already on it and the next try i could add new files to this playlist (and to the iphone) but if I try to add it the way I used to do (directly to the iphone) I still get the prohibited symbol.
    This is ok, since I can use it the way I want (so far, i didn´t try yet to add other files like PDF or CBR files) and find a way to add the files i want, but I cannot help to think how wierd this is...
    I just don´t like the way apple choosed to make possible transfer files to my device. I really like my iphone but my friends with Nokia and Android have an easier life on that matter...

  • Hi i am working on my web site and it appears to have blocked the ip from my server i can't open my web sites and i cant open the server home page but can do this on my iPhone i have trend micro running on 2 other desk tops all from the same router please

    Hi i am working on my web site and it appears to have blocked the ip from my server i can't open my web sites and i cant open the server home page but can do this on my iPhone i have trend micro running on 2 other desk tops all from the same router please help maybe its a firewall? Cheers Dave

    All I can suggest is that you open that file on the MBA and save it as a new file, then see if you can open the new one on the iMac.

  • HT1338 I can see my photos in iphoto but can't email them, edit them or print them....help please!

    I can see my photos in iphoto but can't email them, edit them or print them....help please!

    First, what is the formatting of the external hard drive?  It should be OS X Extended (journaled). You can determine it by selecting the EHD and typing Command + i. 
    Click to view full size
    If it isn't formatted to that you should move the library off of it and reformat.
    The "!" is an indication that the file path to the original file has been broken  So make a temporary, duplicate copy of the library and apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Select the options identified in the screenshot. 
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • Cant login using internet explorer 9 but can using...

    I cant login using internet explorer 9 but can using other browsers such as mozilla and google chrome on my laptop.
    The problem is only on my laptop as i can login on my desktop pc .
    I keep returning to the login page everytime I submit my details.
    Solved!
    Go to Solution.

    You could try clearing cookies and cache - see here for how http://kb.wisc.edu/page.php?id=15141
    Can't think of much else I'm afraid - don't actually use IE (or windows) that much myself.

  • I cant see my files on my hard drive

    hi
    i'm having a problem with my hard drive that it's connected to my airport express is that ever time i connect to my drive i cant see my files in i!!
    please help me out guys with this problem
    my hard drive is toshiba

    crap!!
    at least thanks for helping me
    but i think apple doesn't want solve this problem maybe to make there customers buy the time capsule
    oh well i think i gonna go for plan(b) destroy my hard drive and the base station and buy the time capsule or selling them and buy the time capsule

Maybe you are looking for

  • Print settings for ALV report

    I have a ALV report output with LINE-SIZE 1023.  But when I try to execute the report in background the output row is not coming in one line but in 2 lines. When we run the report in background I gave the printer as 'LOCL' (local) and displayed in sp

  • 10.9.2 upgrade kernal panic

    10.9.2 Upgrade Caused Kernal Panic after reboot - 2009 13" MBP Can smeone please have a look and tell me anything? Anonymous UUID:       900DF08F-A6D0-39C3-6271-FA3F315F7ADF Tue Feb 25 15:30:27 2014 panic(cpu 1 caller 0xffffff8007adbe2e): Kernel trap

  • G4 does not detect existing Airport network

    Following a physical move to another room my G4 does not recognize any network, including an existing Airport Extreme. My G5, also in the same room as the G4 does recognize the Airport and other networks. I rechecked the airport card in the G4 to ens

  • External monitor for HP Omni 10

    what can I use as an external monitor for the HP Omni 10? I have an HP W7072a, will it work? This question was solved. View Solution.

  • PDF form output

    Apparently you can make a PDF form output. But how did they do this: http://www.oracle.com/technology/products/reports/showcase/conmeds_OC_onePage.pdf Is it possible to make it in such a way that you can save the document including the entered data?