Title: package.js not found error with window.console · Issue #287 · BobHanson/java2script · GitHub
Open Graph Title: package.js not found error with window.console · Issue #287 · BobHanson/java2script
X Title: package.js not found error with window.console · Issue #287 · BobHanson/java2script
Description: Hi, When I use console: window.console instead of console:'sysoutdiv' I see the following error in the web browser console about package.js not being found: swingjs2.js:13212 j2sApplet exec TensionApplet loadClazz null -- OK swingjs2.js:...
Open Graph Description: Hi, When I use console: window.console instead of console:'sysoutdiv' I see the following error in the web browser console about package.js not being found: swingjs2.js:13212 j2sApplet exec Tension...
X Description: Hi, When I use console: window.console instead of console:'sysoutdiv' I see the following error in the web browser console about package.js not being found: swingjs2.js:13212 j2sApplet exec...
Opengraph URL: https://github.com/BobHanson/java2script/issues/287
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"package.js not found error with window.console","articleBody":"Hi,\n\nWhen I use `console: window.console` instead of `console:'sysoutdiv'` I see the following error in the web browser console about package.js not being found:\n\n```\nswingjs2.js:13212 j2sApplet exec TensionApplet loadClazz null -- OK\nswingjs2.js:9669 xhr.open async=false url=../../../site/swingjs/j2s/core/package.js\nswingjs2.js:9709 GET https://dkosovic.github.io/eVibJS/site/swingjs/j2s/core/package.js 404 (Not Found)\nsend @ swingjs2.js:9709\najax @ swingjs2.js:9234\nJ2S.$ajax @ swingjs2.js:11011\nJ2S.getFileData @ swingjs2.js:11689\nClazz.loadScript @ swingjs2.js:17195\n_Loader.loadClass._Loader.loadClass @ swingjs2.js:16951\n_Loader.loadPackageClasspath @ swingjs2.js:16901\n__loadClazz @ swingjs2.js:13242\n__nextExecution @ swingjs2.js:13214\nsetTimeout\nproto._setupJS @ swingjs2.js:13539\nproto._init @ swingjs2.js:13380\nJ2S._Canvas2D @ swingjs2.js:13352\nApplet._getCanvas @ swingjs2.js:22036\nApplet._get @ swingjs2.js:22011\nSwingJS.getApplet @ swingjs2.js:21901\n(anonymous) @ Tension.html:39\nswingjs2.js:17544 [Java2Script] The required class file \n\n../../../site/swingjs/j2s/core/package.js\nwas not found.\n\n\nSyntaxError: Unexpected token '\u003c'\n at evaluate (https://dkosovic.github.io/eVibJS/site/swingjs/swingjs2.js:17092:30)\n at Clazz.loadScript (https://dkosovic.github.io/eVibJS/site/swingjs/swingjs2.js:17196:5)\n at _Loader.loadClass._Loader.loadClass (https://dkosovic.github.io/eVibJS/site/swingjs/swingjs2.js:16951:10)\n at _Loader.loadPackageClasspath (https://dkosovic.github.io/eVibJS/site/swingjs/swingjs2.js:16901:14)\n at Array.__loadClazz (https://dkosovic.github.io/eVibJS/site/swingjs/swingjs2.js:13242:18)\n at __nextExecution (https://dkosovic.github.io/eVibJS/site/swingjs/swingjs2.js:13214:7)\n\nswingjs2.js:17544 SyntaxError: Unexpected token '\u003c' loading ../../../site/swingjs/j2s/core/package.js\n\nswingjs2.js:17544 j2sApplet exec TensionApplet start applet null\n\nswingjs2.js:13212 j2sApplet exec TensionApplet start applet null -- OK\nswingjs2.js:9669 xhr.open async=false url=../../../site/swingjs/j2s/java/lang/Class.js\nswingjs2.js:17542 transpiler was unknown now 5.0.1-v7 for java.lang.Class\n\nCon.consoleOutput @ swingjs2.js:17542\n(anonymous) @ swingjs2.js:17893\nps.println.ps.println$.ps.println$Z.ps.println$I.ps.println$S.ps.println$C.ps.println$O @ swingjs2.js:17869\n```\n\nIt seems to be happening at line 17544 in swingjs2.js :\nhttps://github.com/dkosovic/eVibJS/blob/3e9eece2722b8ca5d8729c94f4a04081e3269d7f/site/swingjs/swingjs2.js#L17540-L17545\n\nThis was the HTML I was using:\nhttps://github.com/dkosovic/eVibJS/blob/gh-pages/Programs/General/Prog1/Tension.html\n\nI'm not sure if the package.js not being found error is because I'm doing something wrong? The applet is working fine otherwise.","author":{"url":"https://github.com/dkosovic","@type":"Person","name":"dkosovic"},"datePublished":"2025-10-15T12:10:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":15},"url":"https://github.com/287/java2script/issues/287"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:046272b4-49cf-718c-79c8-ea5b80ef3791 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E00:2A8D16:2B5DCE:3AA6CF:69696BAC |
| html-safe-nonce | 14478a1cf39a0e0d8aaad4f7a0a8e724c8cbbe6b53f3b27bab0650f974315636 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTAwOjJBOEQxNjoyQjVEQ0U6M0FBNkNGOjY5Njk2QkFDIiwidmlzaXRvcl9pZCI6IjM5NTkwODgxODUwNjc3OTMzMjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bd5e474ac0ee0bd8ef5401ef5d7ae9544ed6c0a91473c57470bcb1922a89feff |
| hovercard-subject-tag | issue:3517738774 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/BobHanson/java2script/287/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9d2d132a278ef472e6500358229956fd08a5699c92e7f51ab40c3c6f056d773d/BobHanson/java2script/issues/287 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9d2d132a278ef472e6500358229956fd08a5699c92e7f51ab40c3c6f056d773d/BobHanson/java2script/issues/287 |
| og:image:alt | Hi, When I use console: window.console instead of console:'sysoutdiv' I see the following error in the web browser console about package.js not being found: swingjs2.js:13212 j2sApplet exec Tension... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dkosovic |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6f193beb8ff08443adc07685d75302ab8aaf0a135f6e251c3ff3112c8deb881 |
| turbo-cache-control | no-preview |
| go-import | github.com/BobHanson/java2script git https://github.com/BobHanson/java2script.git |
| octolytics-dimension-user_id | 17748315 |
| octolytics-dimension-user_login | BobHanson |
| octolytics-dimension-repository_id | 93647660 |
| octolytics-dimension-repository_nwo | BobHanson/java2script |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 32129080 |
| octolytics-dimension-repository_parent_nwo | java2script/java2script |
| octolytics-dimension-repository_network_root_id | 32129080 |
| octolytics-dimension-repository_network_root_nwo | java2script/java2script |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ec4d88fbe7ed62446d90b0a6d8e6db4248a8f8b8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width