<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Give me an example .x3d that generates bad .java code and I will
see what I can do with it. I will trade you .x3d for .java, so
you can see the patterns I use...mostly more classes, but very
effective if you don't keep .class files on the file system (I
do!).<br>
</p>
<p>Thanks!</p>
<p>Now i'm seeing another issue:</p>
<p>translating to java<br>
BEGIN ../data/JinLOA4-1.x3d > java, className='JinLOA4-1' has
illegal character(s) ( -.,;) replaced with '_' underscore
character. newClassName='JinLOA4_1'<br>
END ../data/JinLOA4-1.x3d<br>
BEGIN ../data/JinLOA4-2.x3d > java, className='JinLOA4-2' has
illegal character(s) ( -.,;) replaced with '_' underscore
character. newClassName='JinLOA4_2'<br>
END ../data/JinLOA4-2.x3d<br>
BEGIN ../data/JinLOA4-3.x3d > java, className='JinLOA4-3' has
illegal character(s) ( -.,;) replaced with '_' underscore
character. newClassName='JinLOA4_3'<br>
END ../data/JinLOA4-3.x3d<br>
BEGIN ../data/JinLOA4-4.x3d > java, className='JinLOA4-4' has
illegal character(s) ( -.,;) replaced with '_' underscore
character. newClassName='JinLOA4_4'<br>
END ../data/JinLOA4-4.x3d<br>
BEGIN ../data/JinLOA4.x3d > java, END ../data/JinLOA4.x3d</p>
<p>I will work towards renaming source data files and correcting
titles<br>
</p>
<p>John<br>
</p>
<div class="moz-cite-prefix">On 12/20/21 12:05, Brutzman, Donald
(Don) (CIV) wrote:<br>
</div>
<blockquote type="cite"
cite="mid:BY3PR13MB4884CACA854E610CABA182FBC47B9@BY3PR13MB4884.namprd13.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}span.EmailStyle22
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}div.WordSection1
{page:WordSection1;}ol
{margin-bottom:0in;}ul
{margin-bottom:0in;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">[copy: x3d-public]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Yes, agreed it is a goal, so far my
workarounds have not overcome this Java blocker. Possibly
adjustments to the array-dissection method might work.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Please see following for details:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<ul style="margin-top:0in" type="disc">
<li class="MsoListParagraph"
style="margin-left:0in;mso-list:l0 level1 lfo1"><a class="moz-txt-link-freetext" href="https://www.web3d.org/specifications/java/X3DJSAIL.html#TODO">https://www.web3d.org/specifications/java/X3DJSAIL.html#TODO</a><o:p></o:p></li>
<li class="MsoListParagraph"
style="margin-left:0in;mso-list:l0 level1 lfo1">Limitations
of Java memory handling: many methods with large blocks of
data (greater than 64K compiled) are supported by splitting
off arrays portions as separate data structures, when
needed, rather than pipelined functional-style
instantiations. However some of the extremely large X3D
models are simply... too large. See build.java.all.log.txt
for console logs from all examples.<o:p></o:p></li>
<li class="MsoListParagraph"
style="margin-left:0in;mso-list:l0 level1 lfo1"><a class="moz-txt-link-freetext" href="https://www.web3d.org/x3d/content/examples/build.java.all.log.txt">https://www.web3d.org/x3d/content/examples/build.java.all.log.txt</a><o:p></o:p></li>
</ul>
<div>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New"">all the best, Don<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New"">-- <o:p>
</o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New"">Don Brutzman Naval Postgraduate School, Code
USW/Br <a class="moz-txt-link-abbreviated" href="mailto:brutzman@nps.edu">brutzman@nps.edu</a><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New"">Watkins 270, MOVES Institute, Monterey CA
93943-5000 USA +1.831.656.2149<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New"">X3D graphics, virtual worlds, navy robotics
https://</span>
<span style="font-size:10.0pt;font-family:"Courier
New"">faculty.nps.edu/brutzman<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> John Carlson
<a class="moz-txt-link-rfc2396E" href="mailto:yottzumm@gmail.com"><yottzumm@gmail.com></a> <br>
<b>Sent:</b> Sunday, December 19, 2021 8:32 PM<br>
<b>To:</b> Brutzman, Donald (Don) (CIV)
<a class="moz-txt-link-rfc2396E" href="mailto:brutzman@nps.edu"><brutzman@nps.edu></a>; Joseph D Williams
<a class="moz-txt-link-rfc2396E" href="mailto:joedwil@earthlink.net"><joedwil@earthlink.net></a><br>
<b>Subject:</b> Problem with X3dToJava.xslt (code to
large)<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p><span style="font-family:"Courier
New";color:black;background:white">Probably this is a
"don't fix" I am addressing other JinLOA4_*java next.
Attached. _1.java</span><o:p></o:p></p>
<p><span style="font-family:"Courier
New";color:black;background:white">$ javac -cp
.:/home/coderextreme/pythonSAI/X3DJSAIL.4.0.full.jar
net/x3d</span><span style="font-family:"Courier
New""><br>
jsonld/data/JinLOA4*java <br>
net/x3djsonld/data/JinLOA4_1.java:114: error: code too
large <br>
public final void initialize() <br>
^ <br>
1 error</span><o:p></o:p></p>
</div>
</div>
</blockquote>
</body>
</html>