05-10-2012, 07:04 AM | #16 |
Banned
Posts: 640
Karma: 4911
Join Date: Jul 2007
Location: Grapevine, TX
Device: iPad4
|
I uninstalled Java and reinstalled with the latest version 7.
Code:
Calibre2opds startup ==================== ' [INFO] Trying to locate Java on this system [INFO] ==================================== [INFO] Java location not found via JAVA_HOME environment variable [INFO] Java not found in default 32-bit JRE6 location [INFO] Java not found in default 32-bit JRE7 location [INFO] Java not found in default 64-bit JRE6 location [INFO] Java found at default 64-bit JRE7 location [C:\Program Files (x86)\Java\j re7] ' "-----------------------" " Calibre2Opds STARTING " "-----------------------" ' \Java\jre7\bin\JAVAW.EXE"" was unexpected at this time. C:\Program Files (x86)\Calibre2Opds> |
05-10-2012, 07:34 AM | #17 |
Wizard
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
OK - looking at that I can see where it is failing. I can see it is going down a path that is specific to the case where you are using 64-bit Java and do not have the JAVA_HOME environment variable set. I suspect it is a quoting problem somewhere (although I cannot yet see why!). It is also not clear why others running 64-bit Java on Windows are not seeing the same problem (unless they are and have not yet reported it). The strange thing is I did not think that specific path had changed from the 3.0 release although it must have I guess.
My suggestion is that as a temporary fix you insert lines at the top of the rungui.cmd file that read Code:
START "Calibre2Opds" "C:\Program Files (x86)\Java\jre6" -Xms128m -Xmx512m -cp OpdsOutput-3.1-SNAPSHOT.jar Gui exit I will see if I can pin down the problem, and then give you an updated rungui.cmd file so you can check I have got the fix right for future releases. I do not have a 64-bit sytem of my own so have to rely on others reporting and testing issues that they throw up. |
05-10-2012, 08:19 AM | #18 |
Wizard
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
I think I may have tracked down the problem! It appears to be an interaction between uses of quotes and braces in particular combinations.
If I am correct the attached rungui.cmd file will rectify the problem. Extract it from the ZIP overwriting your current rungui.cmd file (you may want to back the existing file up first). Please let me know if it does fix the problem as if so I need to add this file to the available downloads. |
05-10-2012, 08:35 AM | #19 |
Banned
Posts: 640
Karma: 4911
Join Date: Jul 2007
Location: Grapevine, TX
Device: iPad4
|
I'll try it tonight when I get home. I am running the 32 bit java in a 64 bit OS.
|
05-10-2012, 09:00 AM | #20 |
Wizard
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
|
05-10-2012, 05:21 PM | #21 |
Banned
Posts: 640
Karma: 4911
Join Date: Jul 2007
Location: Grapevine, TX
Device: iPad4
|
Okay I'm getting a different error with the new rungui.cmd you provided. I get an popup error box stating "Windows can not find C:\program files\java\jre7\bin\' Make sure you type the name correctly, and then try again."
The command window has the same error statement. Code:
' [INFO] Trying to locate Java on this system [INFO] ==================================== [INFO] Java location not found via JAVA_HOME environment variable [INFO] Java not found in default 32-bit JRE6 location 'got' is not recognized as an internal or external command, operable program or batch file. [INFO] Java found at 32-bit JRE7 location [C:\Program Files\Java\jre7] ' "-----------------------" " Calibre2Opds STARTING " "-----------------------" ' ' [INFO] START "Calibre2Opds" "C:\Program Files\Java\jre7\bin\" -Xms128m -Xmx512 -cp OpdsOutput-3.1-SNAPSHOT.jar Gui ' The system cannot find the file C:\Program Files\Java\jre7\bin\. ' "-----------------------" " Calibre2Opds FINISHED " "-----------------------" ' |
05-10-2012, 05:35 PM | #22 |
Grand Sorcerer
Posts: 12,167
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Line 50 of the batch file
Code:
if not exist "%ProgramFiles%\Java\jre7\bin\%JAVAPROG%" got not_jre7_32 Code:
if not exist "%ProgramFiles%\Java\jre7\bin\%JAVAPROG%" goto not_jre7_32 |
05-10-2012, 05:48 PM | #23 |
Grand Sorcerer
Posts: 12,167
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
You could use the PROCESSOR_ARCHITECTURE variable to see if this is 64 bit or 32 bit OS; AMD64 or IX86.
The comments output by the batch file are a bit misleading... On a 64 bit Windows, 32 bit Java is in %ProgramFiles(x86)%\Java\ and 64 bit Java in %ProgramFiles%\Java\ I will check a 32 bit machine later. |
05-10-2012, 05:57 PM | #24 | |
Wizard
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Quote:
As it happens that error forced you down a path that had another error (a mispelt variable name)! Strange how there can be this many errors in code that is used every day! That is a problem with trying to simulate test cases on a system that is not identical to the real target system. Anyway - here is yet another revised rungui.cmd file that I hope will work this time! Sorry about all these problems but I am grateful to you for helping me work on solving them. As an aside have you by any chance tried that hard-coded line I suggested as a workaround that should work on your system? |
|
05-10-2012, 06:04 PM | #25 | |
Wizard
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Quote:
Your idea of using the PROCESSOR_ARCHITECTURE variable is interesting. I will have to see how it varies across different environments to see if it is actually useful in this particular case. If nothing else I think it might be a good idea for the comments output by the rungui.cmd file to give its value for any future trouble-shooting. |
|
05-10-2012, 06:14 PM | #26 |
Banned
Posts: 640
Karma: 4911
Join Date: Jul 2007
Location: Grapevine, TX
Device: iPad4
|
Bingo! the last one works great. Thank you for revising.
|
05-10-2012, 06:24 PM | #27 |
Wizard
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
|
05-10-2012, 08:05 PM | #28 |
Grand Sorcerer
Posts: 12,167
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Please make one more change....
Don't use %ProgramFiles% (x86) The actual environment variable is %ProgramFiles(x86)% |
12-19-2012, 07:28 PM | #29 |
my parent's oops...
Posts: 466
Karma: 1477570
Join Date: Feb 2009
Device: Vx->Handera->Clie-> Axim->505->650->KPW/Aura ->iOS/L2
|
Quick question re small problem
Hi, I have been using the C2OPDS quite successfully for several months (v3 build 151). I have run into a new problem that I haven't been able to solve and wanted to see if anyone can spot my mistake.
I originally set up the catalog to download epub books on my ipad. Now I have a kindle and wanted to add azw3 books into the catalog. I have tried combinations on the "adv customization options" page in the "formats included" box. Using the help feature, it says to separate the formats using commas. I have tried the following: "EPUB, AZW3" "EPUB,AZW3" with neither developing a catalog with an option to download the azw3 format. Only the epub format link is included. Any thoughts would be appreciated. |
12-20-2012, 02:45 AM | #30 |
Wizard
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
You are limited to the list currently built into the program and that does not currently include AZW3. The supported list is given in the online manual.
The 3.2 release is intended to provide new options in this area. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[The Older version] Calibre2opds V2 | dpierron | Related Tools | 537 | 04-06-2012 09:43 AM |
List of Free Online OPDS Catalogs? | Madmick | General Discussions | 1 | 01-14-2012 12:09 AM |
Calibre->Calibre2Opds->Fbreader Network Library - No Download Icon | boredsysadmin | Calibre | 2 | 01-16-2011 08:00 PM |
Your personal online OPDS-library | wdonne | Self-Promotions by Authors and Publishers | 9 | 01-04-2011 03:34 AM |
Call for comments: OPDS Catalogs 0.9 draft (open catalog standard ebooks) | zelda_pinwheel | News | 4 | 05-14-2010 01:02 PM |